src/ICEWS_LocRes_Branch/ActorMentionFinder.cpp
/** Return a number between zero and max_output_val, where the result stops
  * growing after we reach max_input_val. */
Return a number between zero and max_output_val, where the result stops
growing after we reach max_input_val.
Return a number between zero and max_output_val where the result stops growing after we reach max_input_val .
float ActorMentionFinder::countToScore(float count, float max_input_val, float max_output_val) 
{
	if (count > max_input_val) 
		return max_output_val;
	else 
		return (max_output_val - 
		        ((max_output_val/max_input_val/max_input_val) * 
		         ((count-max_input_val) * (count-max_input_val))));
}
float ActorMentionFinder :: countToScore ( float count , float max_input_val , float max_output_val ) { if ( count > max_input_val ) return max_output_val ; else return ( max_output_val - ( ( max_output_val / max_input_val / max_input_val ) * ( ( count - max_input_val ) * ( count - max_input_val ) ) ) ) ; }
Return a number between zero and max_output_val, where the result stops
 growing after we reach max_input_val.
Return a number between zero and max_output_val where the result stops growing after we reach max_input_val .