commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luc Maisonobe <Luc.Maison...@free.fr>
Subject Re: [math]How to do standardizing (normalizing)
Date Wed, 29 Sep 2010 16:53:40 GMT
Le 29/09/2010 12:13, VanIngen, Erik (FIPS) a écrit :
> Hi Apache Commons Math users
> 
> I am looking for an easy way of standardizing my values a mean 0 and a standard deviation
of 1. What is the best way to do that?
> 
> I have tried this:
> DescriptiveStatistics stats = new DescriptiveStatistics();
> // adding values
> ....
> // Compute Mean and StandardDeviation
> double mean  = stats.getMean();
> double std = stats.getStandardDeviation();
> 
> and then standardize each value according z = (x- mean)/std
> 
> But I would like to have just a function of standardize an array according the parameters
mean and std. Is there something like this in Apache Math Commons?

I don't think we have such a function.

Luc

> 
> Erik
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message