Here you can find the source of normalizeFromMeanAndStdev(List
public static List<Double> normalizeFromMeanAndStdev(List<Double> values, double mean, double stdev)
//package com.java2s; //License from project: Open Source License import java.util.ArrayList; import java.util.List; public class Main { public static List<Double> normalizeFromMeanAndStdev(List<Double> values, double mean, double stdev) { List<Double> normalized = new ArrayList<Double>(); for (Double d : values) { normalized.add((d - mean) / stdev); }//from w w w .j a v a 2 s .c o m return normalized; } }