Class InternalMatrixStats
- java.lang.Object
-
- org.elasticsearch.search.aggregations.InternalAggregation
-
- org.elasticsearch.search.aggregations.matrix.stats.InternalMatrixStats
-
- All Implemented Interfaces:
org.elasticsearch.common.io.stream.NamedWriteable,org.elasticsearch.common.io.stream.Writeable,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentFragment,org.elasticsearch.search.aggregations.Aggregation,MatrixStats
public class InternalMatrixStats extends org.elasticsearch.search.aggregations.InternalAggregation implements MatrixStats
Computes distribution statistics over multiple fields
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation
org.elasticsearch.search.aggregations.Aggregation.CommonFields
-
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.InternalAggregation
org.elasticsearch.search.aggregations.InternalAggregation.ReduceContext
-
-
Constructor Summary
Constructors Constructor Description InternalMatrixStats(org.elasticsearch.common.io.stream.StreamInput in)Read from a stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleandoEquals(java.lang.Object obj)protected intdoHashCode()org.elasticsearch.search.aggregations.InternalAggregationdoReduce(java.util.List<org.elasticsearch.search.aggregations.InternalAggregation> aggregations, org.elasticsearch.search.aggregations.InternalAggregation.ReduceContext reduceContext)protected voiddoWriteTo(org.elasticsearch.common.io.stream.StreamOutput out)org.elasticsearch.common.xcontent.XContentBuilderdoXContentBody(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)doublegetCorrelation(java.lang.String fieldX, java.lang.String fieldY)get the correlation between the two fieldsdoublegetCovariance(java.lang.String fieldX, java.lang.String fieldY)get the covariance between the two fieldslonggetDocCount()get the number of documentslonggetFieldCount(java.lang.String field)get the number of samples for the given field.doublegetKurtosis(java.lang.String field)get the distribution shape for the given fielddoublegetMean(java.lang.String field)get the mean for the given fieldjava.lang.ObjectgetProperty(java.util.List<java.lang.String> path)doublegetSkewness(java.lang.String field)get the distribution skewness for the given fielddoublegetVariance(java.lang.String field)get the variance for the given fieldjava.lang.StringgetWriteableName()-
Methods inherited from interface org.elasticsearch.search.aggregations.Aggregation
getMetaData, getName, getType
-
Methods inherited from class org.elasticsearch.search.aggregations.InternalAggregation
equals, getMetaData, getName, getProperty, getType, hashCode, isMapped, pipelineAggregators, readSize, reduce, toString, toXContent, writeSize, writeTo
-
-
-
-
Method Detail
-
doWriteTo
protected void doWriteTo(org.elasticsearch.common.io.stream.StreamOutput out) throws java.io.IOException- Specified by:
doWriteToin classorg.elasticsearch.search.aggregations.InternalAggregation- Throws:
java.io.IOException
-
getWriteableName
public java.lang.String getWriteableName()
- Specified by:
getWriteableNamein interfaceorg.elasticsearch.common.io.stream.NamedWriteable
-
getDocCount
public long getDocCount()
get the number of documents- Specified by:
getDocCountin interfaceMatrixStats
-
getFieldCount
public long getFieldCount(java.lang.String field)
get the number of samples for the given field. == docCount - numMissing- Specified by:
getFieldCountin interfaceMatrixStats
-
getMean
public double getMean(java.lang.String field)
get the mean for the given field- Specified by:
getMeanin interfaceMatrixStats
-
getVariance
public double getVariance(java.lang.String field)
get the variance for the given field- Specified by:
getVariancein interfaceMatrixStats
-
getSkewness
public double getSkewness(java.lang.String field)
get the distribution skewness for the given field- Specified by:
getSkewnessin interfaceMatrixStats
-
getKurtosis
public double getKurtosis(java.lang.String field)
get the distribution shape for the given field- Specified by:
getKurtosisin interfaceMatrixStats
-
getCovariance
public double getCovariance(java.lang.String fieldX, java.lang.String fieldY)get the covariance between the two fields- Specified by:
getCovariancein interfaceMatrixStats
-
getCorrelation
public double getCorrelation(java.lang.String fieldX, java.lang.String fieldY)get the correlation between the two fields- Specified by:
getCorrelationin interfaceMatrixStats
-
doXContentBody
public org.elasticsearch.common.xcontent.XContentBuilder doXContentBody(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
doXContentBodyin classorg.elasticsearch.search.aggregations.InternalAggregation- Throws:
java.io.IOException
-
getProperty
public java.lang.Object getProperty(java.util.List<java.lang.String> path)
- Specified by:
getPropertyin classorg.elasticsearch.search.aggregations.InternalAggregation
-
doReduce
public org.elasticsearch.search.aggregations.InternalAggregation doReduce(java.util.List<org.elasticsearch.search.aggregations.InternalAggregation> aggregations, org.elasticsearch.search.aggregations.InternalAggregation.ReduceContext reduceContext)- Specified by:
doReducein classorg.elasticsearch.search.aggregations.InternalAggregation
-
doHashCode
protected int doHashCode()
- Specified by:
doHashCodein classorg.elasticsearch.search.aggregations.InternalAggregation
-
doEquals
protected boolean doEquals(java.lang.Object obj)
- Specified by:
doEqualsin classorg.elasticsearch.search.aggregations.InternalAggregation
-
-