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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.elasticsearch.xcontent.XContentBuilder
    doXContentBody(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params)
     
    fromXContent(org.elasticsearch.xcontent.XContentParser parser, String name)
     
    double
    getCorrelation(String fieldX, String fieldY)
    return the correlation coefficient of field x and field y
    double
    getCovariance(String fieldX, String fieldY)
    return the covariance between field x and field y
    long
    return the total document count
    long
    return total field count (differs from docCount if there are missing values)
    double
    return the kurtosis of the distribution
    double
    getMean(String field)
    return the field mean
    double
    return the skewness of the distribution
     
    double
    return the field variance

    Methods 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

      public String getType()
      Specified by:
      getType in interface org.elasticsearch.search.aggregations.Aggregation
    • getDocCount

      public long getDocCount()
      Description copied from interface: MatrixStats
      return the total document count
      Specified by:
      getDocCount in interface MatrixStats
    • getFieldCount

      public long getFieldCount(String field)
      Description copied from interface: MatrixStats
      return total field count (differs from docCount if there are missing values)
      Specified by:
      getFieldCount in interface MatrixStats
    • getMean

      public double getMean(String field)
      Description copied from interface: MatrixStats
      return the field mean
      Specified by:
      getMean in interface MatrixStats
    • getVariance

      public double getVariance(String field)
      Description copied from interface: MatrixStats
      return the field variance
      Specified by:
      getVariance in interface MatrixStats
    • getSkewness

      public double getSkewness(String field)
      Description copied from interface: MatrixStats
      return the skewness of the distribution
      Specified by:
      getSkewness in interface MatrixStats
    • getKurtosis

      public double getKurtosis(String field)
      Description copied from interface: MatrixStats
      return the kurtosis of the distribution
      Specified by:
      getKurtosis in interface MatrixStats
    • getCovariance

      public double getCovariance(String fieldX, String fieldY)
      Description copied from interface: MatrixStats
      return the covariance between field x and field y
      Specified by:
      getCovariance in interface MatrixStats
    • getCorrelation

      public double getCorrelation(String fieldX, String fieldY)
      Description copied from interface: MatrixStats
      return the correlation coefficient of field x and field y
      Specified by:
      getCorrelation in interface MatrixStats
    • doXContentBody

      protected org.elasticsearch.xcontent.XContentBuilder doXContentBody(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      doXContentBody in class org.elasticsearch.search.aggregations.ParsedAggregation
      Throws:
      IOException
    • fromXContent

      public static ParsedMatrixStats fromXContent(org.elasticsearch.xcontent.XContentParser parser, String name) throws IOException
      Throws:
      IOException