@ SuppressWarnings ( "unchecked" ) protected T normalizedToValue ( double normalized ) { double v = absoluteMinValuePrim + normalized * ( absoluteMaxValuePrim - absoluteMinValuePrim ) ; // TODO parameterize this rounding to allow variable decimal points return ( T ) numberType . toNumber ( Math . round ( v * 100 ) / 100d ) ; }
Converts a normalized value to a Number object in the value space between absolute minimum and maximum .