@@ -0,0 +1,716 @@
+import java.util.Arrays;%0A%0A/**%0A * This is the standard mean function%0A */%0Apublic class StandardMeanFunction implements MeanFunction %7B%0A    public double%5B%5D compute(final double%5B%5D%5B%5D data) throws EmptyDataSetException %7B%0A        if(data==null%7C%7Cdata.length==0%7C%7Cdata%5B0%5D.length==0) throw new EmptyDataSetException(%22Input data set is empty%22);%0A        double%5B%5D result = new double%5Bdata%5B0%5D.length%5D;%0A        int size = data.length;%0A        Arrays.fill(result,0.0);%0A%0A        for (double%5B%5D e: data) %7B%0A            for (int i = 0; i %3C e.length; i++) %7B%0A                result%5Bi%5D += e%5Bi%5D;%0A            %7D%0A        %7D%0A%0A        for (int i = 0; i %3C result.length; i++) %7B%0A            result%5Bi%5D /= size;%0A        %7D%0A        return result;%0A    %7D%0A%7D%0A

Create StandardMeanFunction class and test