@@ -0,0 +1,972 @@
+package net.sf.kerner.utils.math;%0A%0Apublic class MissingValues %7B%0A%0A    public static double%5B%5D remove(final double%5B%5D values) %7B%0A        final double%5B%5D result = new double%5Bvalues.length%5D;%0A        int i = 0;%0A        for (final double d : values) %7B%0A            if (Double.isNaN(d) %7C%7C Double.isInfinite(d)) %7B%0A                // ignore%0A            %7D else %7B%0A                result%5Bi%5D = d;%0A                i++;%0A            %7D%0A        %7D%0A        return result;%0A    %7D%0A%0A    public static double%5B%5D replace(final double%5B%5D values, final double replacement) %7B%0A        final double%5B%5D result = new double%5Bvalues.length%5D;%0A        int i = 0;%0A        for (final double d : values) %7B%0A            if (Double.isNaN(d) %7C%7C Double.isInfinite(d)) %7B%0A                // replace%0A                result%5Bi%5D = replacement;%0A                i++;%0A            %7D else %7B%0A                result%5Bi%5D = d;%0A                i++;%0A            %7D%0A        %7D%0A        return result;%0A    %7D%0A%0A    private MissingValues() %7B%0A    %7D%0A%0A%7D%0A

Introduce MissingValues.