lib/fase-1/text-container-item.js
function adjustLiklihood(x) {
  if (x < 0.01) return 0.5;
  else if (x > 0.1) return 1;
  else return Math.min(1, - 1371 * Math.pow(x, 3) + 226 * Math.pow(x, 2) - 4.11 * x + 0.52);
}
function adjustLiklihood(x) {
  if (x < 0.01) return 0.5;
  else if (x > 0.1) return 1;
  else return Math.min(1, - 1371 * Math.pow(x, 3) + 226 * Math.pow(x, 2) - 4.11 * x + 0.52);
}
function adjustLiklihood ( x ) { if ( x < 0.01 ) return 0.5 ; else if ( x > 0.1 ) return 1 ; else return Math . min ( 1 , - 1371 * Math . pow ( x , 3 ) + 226 * Math . pow ( x , 2 ) - 4.11 * x + 0.52 ) ; }
This function is made by the following requirements: : x < 0.01 , y = 0.5 : x > 0.1 , y = 1 : f(x), otherwise The f(x) polynomium is made so it follows: : f(0.01) = 0.5 : f'(0.01) = 0 : f(0.1) = 1 : f'(0.1) = 0
This function is made by the following requirements : : x < 0 . 01 y = 0 . 5 : x > 0 . 1 y = 1 : f ( x ) otherwise The f ( x ) polynomium is made so it follows : : f ( 0 . 01 ) = 0 . 5 : f ( 0 . 01 ) = 0 : f ( 0 . 1 ) = 1 : f ( 0 . 1 ) = 0