Class StatisticalSummaryValues

java.lang.Object
org.hipparchus.stat.descriptive.StatisticalSummaryValues
All Implemented Interfaces:
Serializable, StatisticalSummary

public class StatisticalSummaryValues extends Object implements Serializable, StatisticalSummary
Value object representing the results of a univariate statistical summary.
See Also:
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
    StatisticalSummaryValues(double mean, double variance, long n, double max, double min, double sum)
    Constructor.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    boolean
    equals(Object object)
    Returns true iff object is a StatisticalSummary instance and all statistics have the same values as this.
    double
    Returns the maximum of the available values
    double
    Returns the arithmetic mean of the available values
    double
    Returns the minimum of the available values
    long
    Returns the number of available values
    double
    Returns the standard deviation of the available values.
    double
    Returns the sum of the values that have been added to Univariate.
    double
    Returns the variance of the available values.
    int
    Returns hash code based on values of statistics
    Generates a text report displaying values of statistics.

    Methods inherited from class java.lang.Object Link icon

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details Link icon

    • StatisticalSummaryValues Link icon

      public StatisticalSummaryValues(double mean, double variance, long n, double max, double min, double sum)
      Constructor.
      Parameters:
      mean - the sample mean
      variance - the sample variance
      n - the number of observations in the sample
      max - the maximum value
      min - the minimum value
      sum - the sum of the values
  • Method Details Link icon

    • getMax Link icon

      public double getMax()
      Description copied from interface: StatisticalSummary
      Returns the maximum of the available values
      Specified by:
      getMax in interface StatisticalSummary
      Returns:
      Returns the max.
    • getMean Link icon

      public double getMean()
      Description copied from interface: StatisticalSummary
      Returns the arithmetic mean of the available values
      Specified by:
      getMean in interface StatisticalSummary
      Returns:
      Returns the mean.
    • getMin Link icon

      public double getMin()
      Description copied from interface: StatisticalSummary
      Returns the minimum of the available values
      Specified by:
      getMin in interface StatisticalSummary
      Returns:
      Returns the min.
    • getN Link icon

      public long getN()
      Description copied from interface: StatisticalSummary
      Returns the number of available values
      Specified by:
      getN in interface StatisticalSummary
      Returns:
      Returns the number of values.
    • getSum Link icon

      public double getSum()
      Description copied from interface: StatisticalSummary
      Returns the sum of the values that have been added to Univariate.
      Specified by:
      getSum in interface StatisticalSummary
      Returns:
      Returns the sum.
    • getStandardDeviation Link icon

      public double getStandardDeviation()
      Description copied from interface: StatisticalSummary
      Returns the standard deviation of the available values.
      Specified by:
      getStandardDeviation in interface StatisticalSummary
      Returns:
      Returns the standard deviation
    • getVariance Link icon

      public double getVariance()
      Description copied from interface: StatisticalSummary
      Returns the variance of the available values.
      Specified by:
      getVariance in interface StatisticalSummary
      Returns:
      Returns the variance.
    • equals Link icon

      public boolean equals(Object object)
      Returns true iff object is a StatisticalSummary instance and all statistics have the same values as this.
      Overrides:
      equals in class Object
      Parameters:
      object - the object to test equality against.
      Returns:
      true if object equals this
    • hashCode Link icon

      public int hashCode()
      Returns hash code based on values of statistics
      Overrides:
      hashCode in class Object
      Returns:
      hash code
    • toString Link icon

      public String toString()
      Generates a text report displaying values of statistics. Each statistic is displayed on a separate line.
      Overrides:
      toString in class Object
      Returns:
      String with line feeds displaying statistics