Class RunningStats
java.lang.Object
org.elasticsearch.search.aggregations.matrix.stats.RunningStats
Descriptive stats gathered per shard. Coordinating node computes final correlation and covariance stats
based on these descriptive stats. This single pass, parallel approach is based on:
http://prod.sandia.gov/techlib/access-control.cgi/2008/086212.pdf
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V extends Object>, Writeable.Writer<V extends Object>
-
Field Summary
Modifier and TypeFieldDescriptioncountscovariance valuesprotected long
count of observations (same number of observations per field)per field sum of observationskurtosis values (fourth moment)mean values (first moment)skewness values (third moment)variance values (second moment) -
Constructor Summary
ConstructorDescriptionCtor to create an instance of running statistics -
Method Summary
Modifier and TypeMethodDescriptionvoid
updates running statistics with a documents field valuesclone()
boolean
int
hashCode()
void
merge
(RunningStats other) Merges the descriptive statistics of a second data set (e.g., per shard) running computations taken from: http://prod.sandia.gov/techlib/access-control.cgi/2008/086212.pdfvoid
writeTo
(StreamOutput out)
-
Field Details
-
docCount
protected long docCountcount of observations (same number of observations per field) -
fieldSum
per field sum of observations -
counts
counts -
means
mean values (first moment) -
variances
variance values (second moment) -
skewness
skewness values (third moment) -
kurtosis
kurtosis values (fourth moment) -
covariances
covariance values
-
-
Constructor Details
-
RunningStats
Ctor to create an instance of running statistics- Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
add
updates running statistics with a documents field values -
merge
Merges the descriptive statistics of a second data set (e.g., per shard) running computations taken from: http://prod.sandia.gov/techlib/access-control.cgi/2008/086212.pdf -
clone
-
equals
-
hashCode
public int hashCode()
-