fekaputra / juniversalchardet

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

getConfidence() #15

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 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