public class ParsedMatrixStats extends org.elasticsearch.search.aggregations.ParsedAggregation implements MatrixStats
Constructor and Description |
---|
ParsedMatrixStats() |
Modifier and Type | Method and 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
|
declareAggregationFields, getMetaData, getName, parseDouble, setName, toXContent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public java.lang.String getType()
getType
in interface org.elasticsearch.search.aggregations.Aggregation
public long getDocCount()
MatrixStats
getDocCount
in interface MatrixStats
public long getFieldCount(java.lang.String field)
MatrixStats
getFieldCount
in interface MatrixStats
public double getMean(java.lang.String field)
MatrixStats
getMean
in interface MatrixStats
public double getVariance(java.lang.String field)
MatrixStats
getVariance
in interface MatrixStats
public double getSkewness(java.lang.String field)
MatrixStats
getSkewness
in interface MatrixStats
public double getKurtosis(java.lang.String field)
MatrixStats
getKurtosis
in interface MatrixStats
public double getCovariance(java.lang.String fieldX, java.lang.String fieldY)
MatrixStats
getCovariance
in interface MatrixStats
public double getCorrelation(java.lang.String fieldX, java.lang.String fieldY)
MatrixStats
getCorrelation
in interface MatrixStats
protected 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.ParsedAggregation
java.io.IOException
public static ParsedMatrixStats fromXContent(org.elasticsearch.common.xcontent.XContentParser parser, java.lang.String name) throws java.io.IOException
java.io.IOException