protected Boolean compute(double value){
  if (Double.isNaN(value)) {
    return true;
  }
 else {
    return false;
  }
}

protected Boolean compute ( double value ) { if ( Double . isNaN ( value ) ) { return true ; } else { return false ; } }
computes the result for a double value .
