public class StatCounter
extends Object
implements scala.Serializable
Constructor and Description |
---|
StatCounter()
Initialize the StatCounter with no values.
|
StatCounter(scala.collection.TraversableOnce<Object> values) |
Modifier and Type | Method and Description |
---|---|
static StatCounter |
apply(scala.collection.Seq<Object> values)
Build a StatCounter from a list of values passed as variable-length arguments.
|
static StatCounter |
apply(scala.collection.TraversableOnce<Object> values)
Build a StatCounter from a list of values.
|
StatCounter |
copy()
Clone this StatCounter
|
long |
count() |
double |
max() |
double |
mean() |
StatCounter |
merge(double value)
Add a value into this StatCounter, updating the internal statistics.
|
StatCounter |
merge(StatCounter other)
Merge another StatCounter into this one, adding up the internal statistics.
|
StatCounter |
merge(scala.collection.TraversableOnce<Object> values)
Add multiple values into this StatCounter, updating the internal statistics.
|
double |
min() |
double |
popStdev()
Return the population standard deviation of the values.
|
double |
popVariance()
Return the population variance of the values.
|
double |
sampleStdev()
Return the sample standard deviation of the values, which corrects for bias in estimating the
variance by dividing by N-1 instead of N.
|
double |
sampleVariance()
Return the sample variance, which corrects for bias in estimating the variance by dividing
by N-1 instead of N.
|
double |
stdev()
Return the population standard deviation of the values.
|
double |
sum() |
String |
toString() |
double |
variance()
Return the population variance of the values.
|
public StatCounter(scala.collection.TraversableOnce<Object> values)
public StatCounter()
public static StatCounter apply(scala.collection.TraversableOnce<Object> values)
public static StatCounter apply(scala.collection.Seq<Object> values)
public StatCounter merge(double value)
public StatCounter merge(scala.collection.TraversableOnce<Object> values)
public StatCounter merge(StatCounter other)
public StatCounter copy()
public long count()
public double mean()
public double sum()
public double max()
public double min()
public double variance()
public double popVariance()
public double sampleVariance()
public double stdev()
public double popStdev()
public double sampleStdev()
public String toString()
toString
in class Object