public static ListDouble pow ( final ListNumber data , final double expon ) { return new ListDouble ( ) { @ Override public double getDouble ( int index ) { return Math . pow ( data . getDouble ( index ) , expon ) ; } @ Override public int size ( ) { return data . size ( ) ; } } ; }
Raises each value in a list to the same power .