public static MutableDoubleTuple replaceNaN ( DoubleTuple t , double newValue , MutableDoubleTuple result ) { return DoubleTupleFunctions . apply ( t , d -> Double . isNaN ( d ) ? newValue : d , result ) ; }
Replace all occurrences of Not A Number in the given tuple with the given value and store the result in the given result tuple