double function ( ) { double loc0 = getPrecision ( ) ; double loc1 = getRecall ( ) ; if ( ( loc0 + loc1 ) == 0 ) { return 0 ; } return 2 * loc0 * loc1 / ( loc0 + loc1 ) ; }
calculate the f-measure . this is defined as 2 recall precision ---------------------- recall + precision concode_field_sep double m_TruePos concode_elem_sep double m_TrueNeg concode_elem_sep double m_FalseNeg concode_elem_sep double m_FalsePos concode_elem_sep String[] CATEGORY_NAMES concode_field_sep void setTrueNegative concode_elem_sep void setFalseNegative concode_elem_sep double getTrueNegative concode_elem_sep ConfusionMatrix getConfusionMatrix concode_elem_sep void setTruePositive concode_elem_sep double getTruePositiveRate concode_elem_sep double getFalsePositive concode_elem_sep double getPrecision concode_elem_sep double getFallout concode_elem_sep double getFalsePositiveRate concode_elem_sep void setFalsePositive concode_elem_sep double getRecall concode_elem_sep String toString concode_elem_sep double getTruePositive concode_elem_sep double getFalseNegative concode_elem_sep String getRevision