Class ParsedMatrixStats
java.lang.Object
org.elasticsearch.search.aggregations.ParsedAggregation
org.elasticsearch.search.aggregations.matrix.stats.ParsedMatrixStats
- All Implemented Interfaces:
org.elasticsearch.search.aggregations.Aggregation
,MatrixStats
,org.elasticsearch.xcontent.ToXContent
,org.elasticsearch.xcontent.ToXContentFragment
public class ParsedMatrixStats
extends org.elasticsearch.search.aggregations.ParsedAggregation
implements MatrixStats
-
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 interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params
-
Field Summary
Fields inherited from class org.elasticsearch.search.aggregations.ParsedAggregation
metadata
Fields inherited from interface org.elasticsearch.search.aggregations.Aggregation
TYPED_KEYS_DELIMITER
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.elasticsearch.xcontent.XContentBuilder
doXContentBody
(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) static ParsedMatrixStats
fromXContent
(org.elasticsearch.xcontent.XContentParser parser, String name) double
getCorrelation
(String fieldX, String fieldY) return the correlation coefficient of field x and field ydouble
getCovariance
(String fieldX, String fieldY) return the covariance between field x and field ylong
return the total document countlong
getFieldCount
(String field) return total field count (differs from docCount if there are missing values)double
getKurtosis
(String field) return the kurtosis of the distributiondouble
return the field meandouble
getSkewness
(String field) return the skewness of the distributiongetType()
double
getVariance
(String field) return the field varianceMethods inherited from class org.elasticsearch.search.aggregations.ParsedAggregation
declareAggregationFields, getMetadata, getName, parseDouble, setName, toXContent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.search.aggregations.Aggregation
getMetadata, getName
Methods inherited from interface org.elasticsearch.xcontent.ToXContent
toXContent
Methods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
ParsedMatrixStats
public ParsedMatrixStats()
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceorg.elasticsearch.search.aggregations.Aggregation
-
getDocCount
public long getDocCount()Description copied from interface:MatrixStats
return the total document count- Specified by:
getDocCount
in interfaceMatrixStats
-
getFieldCount
Description copied from interface:MatrixStats
return total field count (differs from docCount if there are missing values)- Specified by:
getFieldCount
in interfaceMatrixStats
-
getMean
Description copied from interface:MatrixStats
return the field mean- Specified by:
getMean
in interfaceMatrixStats
-
getVariance
Description copied from interface:MatrixStats
return the field variance- Specified by:
getVariance
in interfaceMatrixStats
-
getSkewness
Description copied from interface:MatrixStats
return the skewness of the distribution- Specified by:
getSkewness
in interfaceMatrixStats
-
getKurtosis
Description copied from interface:MatrixStats
return the kurtosis of the distribution- Specified by:
getKurtosis
in interfaceMatrixStats
-
getCovariance
Description copied from interface:MatrixStats
return the covariance between field x and field y- Specified by:
getCovariance
in interfaceMatrixStats
-
getCorrelation
Description copied from interface:MatrixStats
return the correlation coefficient of field x and field y- Specified by:
getCorrelation
in interfaceMatrixStats
-
doXContentBody
protected org.elasticsearch.xcontent.XContentBuilder doXContentBody(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
doXContentBody
in classorg.elasticsearch.search.aggregations.ParsedAggregation
- Throws:
IOException
-
fromXContent
public static ParsedMatrixStats fromXContent(org.elasticsearch.xcontent.XContentParser parser, String name) throws IOException - Throws:
IOException
-