protected Boolean compute(double value){
  if (Double.isNaN(value)) {
    return null;
  }
  return !Double.isInfinite(value);
}

protected Boolean compute ( double value ) { if ( Double . isNaN ( value ) ) { return null ; } return ! Double . isInfinite ( value ) ; }
checks whether the parameter is finite or not .
