public class InternalMatrixStats extends InternalAggregation implements MatrixStats
InternalAggregation.ReduceContextAggregation.CommonFieldsToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>metaData, nameTYPED_KEYS_DELIMITEREMPTY_PARAMS| Constructor and Description |
|---|
InternalMatrixStats(StreamInput in)
Read from a stream.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doEquals(java.lang.Object obj) |
protected int |
doHashCode() |
InternalAggregation |
doReduce(java.util.List<InternalAggregation> aggregations,
InternalAggregation.ReduceContext reduceContext) |
protected void |
doWriteTo(StreamOutput out) |
XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
double |
getCorrelation(java.lang.String fieldX,
java.lang.String fieldY)
get the correlation between the two fields
|
double |
getCovariance(java.lang.String fieldX,
java.lang.String fieldY)
get the covariance between the two fields
|
long |
getDocCount()
get the number of documents
|
long |
getFieldCount(java.lang.String field)
get the number of samples for the given field.
|
double |
getKurtosis(java.lang.String field)
get the distribution shape for the given field
|
double |
getMean(java.lang.String field)
get the mean for the given field
|
java.lang.Object |
getProperty(java.util.List<java.lang.String> path) |
double |
getSkewness(java.lang.String field)
get the distribution skewness for the given field
|
double |
getVariance(java.lang.String field)
get the variance for the given field
|
java.lang.String |
getWriteableName() |
equals, getMetaData, getName, getProperty, getType, hashCode, pipelineAggregators, readSize, reduce, toString, toXContent, writeSize, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetMetaData, getName, getTypeisFragment, toXContentpublic InternalMatrixStats(StreamInput in) throws java.io.IOException
java.io.IOExceptionprotected void doWriteTo(StreamOutput out) throws java.io.IOException
doWriteTo in class InternalAggregationjava.io.IOExceptionpublic java.lang.String getWriteableName()
getWriteableName in interface NamedWriteablepublic long getDocCount()
getDocCount in interface MatrixStatspublic long getFieldCount(java.lang.String field)
getFieldCount in interface MatrixStatspublic double getMean(java.lang.String field)
getMean in interface MatrixStatspublic double getVariance(java.lang.String field)
getVariance in interface MatrixStatspublic double getSkewness(java.lang.String field)
getSkewness in interface MatrixStatspublic double getKurtosis(java.lang.String field)
getKurtosis in interface MatrixStatspublic double getCovariance(java.lang.String fieldX,
java.lang.String fieldY)
getCovariance in interface MatrixStatspublic double getCorrelation(java.lang.String fieldX,
java.lang.String fieldY)
getCorrelation in interface MatrixStatspublic XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody in class InternalAggregationjava.io.IOExceptionpublic java.lang.Object getProperty(java.util.List<java.lang.String> path)
getProperty in class InternalAggregationpublic InternalAggregation doReduce(java.util.List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
doReduce in class InternalAggregationprotected int doHashCode()
doHashCode in class InternalAggregationprotected boolean doEquals(java.lang.Object obj)
doEquals in class InternalAggregation