Interface MatrixStats

All Superinterfaces:
Aggregation, ToXContent, ToXContentFragment
All Known Implementing Classes:
InternalMatrixStats, ParsedMatrixStats

public interface MatrixStats extends Aggregation
Interface for MatrixStats Metric Aggregation
  • Method Details

    • getDocCount

      long getDocCount()
      return the total document count
    • getFieldCount

      long getFieldCount(String field)
      return total field count (differs from docCount if there are missing values)
    • getMean

      double getMean(String field)
      return the field mean
    • getVariance

      double getVariance(String field)
      return the field variance
    • getSkewness

      double getSkewness(String field)
      return the skewness of the distribution
    • getKurtosis

      double getKurtosis(String field)
      return the kurtosis of the distribution
    • getCovariance

      double getCovariance(String fieldX, String fieldY)
      return the covariance between field x and field y
    • getCorrelation

      double getCorrelation(String fieldX, String fieldY)
      return the correlation coefficient of field x and field y