org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentFragment, org.elasticsearch.search.aggregations.Aggregation, MatrixStatspublic class ParsedMatrixStats extends org.elasticsearch.search.aggregations.ParsedAggregation implements MatrixStats
| Constructor | Description |
|---|---|
ParsedMatrixStats() |
| Modifier and Type | Method | Description |
|---|---|---|
protected org.elasticsearch.common.xcontent.XContentBuilder |
doXContentBody(org.elasticsearch.common.xcontent.XContentBuilder builder,
org.elasticsearch.common.xcontent.ToXContent.Params params) |
|
static ParsedMatrixStats |
fromXContent(org.elasticsearch.common.xcontent.XContentParser parser,
java.lang.String name) |
|
double |
getCorrelation(java.lang.String fieldX,
java.lang.String fieldY) |
return the correlation coefficient of field x and field y
|
double |
getCovariance(java.lang.String fieldX,
java.lang.String fieldY) |
return the covariance between field x and field y
|
long |
getDocCount() |
return the total document count
|
long |
getFieldCount(java.lang.String field) |
return total field count (differs from docCount if there are missing values)
|
double |
getKurtosis(java.lang.String field) |
return the kurtosis of the distribution
|
double |
getMean(java.lang.String field) |
return the field mean
|
double |
getSkewness(java.lang.String field) |
return the skewness of the distribution
|
java.lang.String |
getType() |
|
double |
getVariance(java.lang.String field) |
return the field variance
|
getMetaData, getNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic java.lang.String getType()
getType in interface org.elasticsearch.search.aggregations.Aggregationpublic long getDocCount()
MatrixStatsgetDocCount in interface MatrixStatspublic long getFieldCount(java.lang.String field)
MatrixStatsgetFieldCount in interface MatrixStatspublic double getMean(java.lang.String field)
MatrixStatsgetMean in interface MatrixStatspublic double getVariance(java.lang.String field)
MatrixStatsgetVariance in interface MatrixStatspublic double getSkewness(java.lang.String field)
MatrixStatsgetSkewness in interface MatrixStatspublic double getKurtosis(java.lang.String field)
MatrixStatsgetKurtosis in interface MatrixStatspublic double getCovariance(java.lang.String fieldX,
java.lang.String fieldY)
MatrixStatsgetCovariance in interface MatrixStatspublic double getCorrelation(java.lang.String fieldX,
java.lang.String fieldY)
MatrixStatsgetCorrelation in interface MatrixStatsprotected org.elasticsearch.common.xcontent.XContentBuilder doXContentBody(org.elasticsearch.common.xcontent.XContentBuilder builder,
org.elasticsearch.common.xcontent.ToXContent.Params params)
throws java.io.IOException
doXContentBody in class org.elasticsearch.search.aggregations.ParsedAggregationjava.io.IOExceptionpublic static ParsedMatrixStats fromXContent(org.elasticsearch.common.xcontent.XContentParser parser, java.lang.String name) throws java.io.IOException
java.io.IOException