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-unsubscr...@commons.apache.org > For additional commands, e-mail: user-h...@commons.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org