Record Class StatisticalAnalyzer.Stats

java.lang.Object
java.lang.Record
com.tnsai.evaluation.benchmark.StatisticalAnalyzer.Stats
Enclosing class:
StatisticalAnalyzer

public static record StatisticalAnalyzer.Stats(int count, double mean, double median, double min, double max, double stdDev, double p5, double p95, double ciLower, double ciUpper) extends Record
Statistical summary.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Stats(int count, double mean, double median, double min, double max, double stdDev, double p5, double p95, double ciLower, double ciUpper)
    Creates an instance of a Stats record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns the value of the ciLower record component.
    double
    Returns the value of the ciUpper record component.
    int
    Returns the value of the count record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    double
    max()
    Returns the value of the max record component.
    double
    Returns the value of the mean record component.
    double
    Returns the value of the median record component.
    double
    min()
    Returns the value of the min record component.
    double
    p5()
    Returns the value of the p5 record component.
    double
    p95()
    Returns the value of the p95 record component.
    double
    Returns the value of the stdDev record component.
     
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • Stats

      public Stats(int count, double mean, double median, double min, double max, double stdDev, double p5, double p95, double ciLower, double ciUpper)
      Creates an instance of a Stats record class.
      Parameters:
      count - the value for the count record component
      mean - the value for the mean record component
      median - the value for the median record component
      min - the value for the min record component
      max - the value for the max record component
      stdDev - the value for the stdDev record component
      p5 - the value for the p5 record component
      p95 - the value for the p95 record component
      ciLower - the value for the ciLower record component
      ciUpper - the value for the ciUpper record component
  • Method Details

    • toMap

      public Map<String,Object> toMap()
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • count

      public int count()
      Returns the value of the count record component.
      Returns:
      the value of the count record component
    • mean

      public double mean()
      Returns the value of the mean record component.
      Returns:
      the value of the mean record component
    • median

      public double median()
      Returns the value of the median record component.
      Returns:
      the value of the median record component
    • min

      public double min()
      Returns the value of the min record component.
      Returns:
      the value of the min record component
    • max

      public double max()
      Returns the value of the max record component.
      Returns:
      the value of the max record component
    • stdDev

      public double stdDev()
      Returns the value of the stdDev record component.
      Returns:
      the value of the stdDev record component
    • p5

      public double p5()
      Returns the value of the p5 record component.
      Returns:
      the value of the p5 record component
    • p95

      public double p95()
      Returns the value of the p95 record component.
      Returns:
      the value of the p95 record component
    • ciLower

      public double ciLower()
      Returns the value of the ciLower record component.
      Returns:
      the value of the ciLower record component
    • ciUpper

      public double ciUpper()
      Returns the value of the ciUpper record component.
      Returns:
      the value of the ciUpper record component