seratch / juniversalchardet

Automatically exported from code.google.com/p/juniversalchardet
1 stars 1 forks source link

getConfidence() #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
in c
Source CharDistribution.cpp
Method float CharDistributionAnalysis::GetConfidence()
float r = mFreqChars / ((mTotalChars - mFreqChars) * mTypicalDistributionRatio);

in java
Source CharDistributionAnalysis.java
Method public float getConfidence()
float r = this.freqChars / (this.totalChars - this.freqChars) * 
this.typicalDistributionRatio;

Parenthesis is less. May be porting miss.

Original issue reported on code.google.com by xyon...@gmail.com on 12 Sep 2012 at 10:21