matarrese/juniversalchardet

getConfidence()

Opened this issue · 0 comments

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