# File lib/rchardet/jpcntx.rb, line 170 def get_confidence # This is just one way to calculate confidence. It works well for me. if @_mTotalRel > MINIMUM_DATA_THRESHOLD: return (@_mTotalRel - @_mRelSample[0]) / @_mTotalRel else return DONT_KNOW end end