commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilles <>
Subject [Math] Statistics summary
Date Fri, 09 Jan 2015 15:01:37 GMT

What is the suggested way to obtain the statistics summary
of an _array_ of values?

There is "SummaryStatistics" in "o.a.c.m.stat.descriptive"
but one need to explicitly write the loop to call "addValue"
for each element.
[Shouldn't there be a constructor that takes a "double[]"

There are the methods "StatUtils" but I suspect that it's
not the most efficient way when several values must be
retrieved (mean, variance, ...). [Moreover, no method
exists to directly return the standard deviation.]

Best regards,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message