instance method get_confidence

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v2.3.18

Signature

get_confidence()

No documentation comment.

Source
# File actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/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

Defined in actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/jpcntx.rb line 170 · View on GitHub · Improve this page · Find usages on GitHub

Defined in CharDet::JapaneseContextAnalysis

Type at least 2 characters to search.

↑↓ navigate · open · esc close