Class RunningStats
java.lang.Object
org.elasticsearch.search.aggregations.matrix.stats.RunningStats
- All Implemented Interfaces:
Cloneable
,org.elasticsearch.common.io.stream.Writeable
public class RunningStats
extends Object
implements org.elasticsearch.common.io.stream.Writeable, Cloneable
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
-
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
ConstructorDescriptionRunningStats(org.elasticsearch.common.io.stream.StreamInput in)
Ctor 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(org.elasticsearch.common.io.stream.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 interfaceorg.elasticsearch.common.io.stream.Writeable
- 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()
-