Java List Mean normalizeFromMeanAndStdev(List values, double mean, double stdev)

Here you can find the source of normalizeFromMeanAndStdev(List values, double mean, double stdev)

Description

normalize From Mean And Stdev

License

Open Source License

Declaration

public static List<Double> normalizeFromMeanAndStdev(List<Double> values, double mean, double stdev) 

Method Source Code


//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;
    }
}

Related

  1. mean(List values)
  2. mean(List numbers)
  3. meanAbsolute(List vector)
  4. meanDouble(List list)
  5. meanDoubleList(List list)
  6. standardDeviation(List values, Double mean)