albfernandez / juniversalchardet

Originally exported from code.google.com/p/juniversalchardet
Other
339 stars 60 forks source link

getConfidence() #15

Closed GoogleCodeExporter closed 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