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