public DoubleColumn filter ( DoublePredicate test ) { DoubleColumn result = DoubleColumn . create ( name ( ) ) ; for ( int i = 0 ; i < size ( ) ; i ++ ) { double d = getDouble ( i ) ; if ( test . test ( d ) ) { result . append ( d ) ; } } return result ; }
Returns a new NumberColumn with only those rows satisfying the predicate