question: private double maxIgnoreNaN ( double a , double b ) { if ( Double . isNaN ( a ) ) { return b ; } if ( Double . isNaN ( b ) ) { return a ; } else { return Math . max ( a , b ) ; } }
target:  A function to find the maximum of two values, but ignoring any Double.NaN values.