Class ParsedMatrixStats

    • Constructor Detail

      • ParsedMatrixStats

        public ParsedMatrixStats()
    • Method Detail

      • getType

        public java.lang.String getType()
        Specified by:
        getType in interface 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​(java.lang.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​(java.lang.String field)
        Description copied from interface: MatrixStats
        return the field mean
        Specified by:
        getMean in interface MatrixStats
      • getVariance

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

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

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

        public double getCovariance​(java.lang.String fieldX,
                                    java.lang.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​(java.lang.String fieldX,
                                     java.lang.String fieldY)
        Description copied from interface: MatrixStats
        return the correlation coefficient of field x and field y
        Specified by:
        getCorrelation in interface MatrixStats
      • fromXContent

        public static ParsedMatrixStats fromXContent​(XContentParser parser,
                                                     java.lang.String name)
                                              throws java.io.IOException
        Throws:
        java.io.IOException