Package com.tnsai.evaluation.benchmark
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 -
Constructor Summary
ConstructorsConstructorDescriptionStats(int count, double mean, double median, double min, double max, double stdDev, double p5, double p95, double ciLower, double ciUpper) Creates an instance of aStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleciLower()Returns the value of theciLowerrecord component.doubleciUpper()Returns the value of theciUpperrecord component.intcount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doublemax()Returns the value of themaxrecord component.doublemean()Returns the value of themeanrecord component.doublemedian()Returns the value of themedianrecord component.doublemin()Returns the value of theminrecord component.doublep5()Returns the value of thep5record component.doublep95()Returns the value of thep95record component.doublestdDev()Returns the value of thestdDevrecord component.toMap()final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
-
-
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 aStatsrecord class.- Parameters:
count- the value for thecountrecord componentmean- the value for themeanrecord componentmedian- the value for themedianrecord componentmin- the value for theminrecord componentmax- the value for themaxrecord componentstdDev- the value for thestdDevrecord componentp5- the value for thep5record componentp95- the value for thep95record componentciLower- the value for theciLowerrecord componentciUpper- the value for theciUpperrecord component
-
-
Method Details
-
toMap
-
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. -
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. -
equals
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 '=='. -
count
public int count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-
mean
public double mean()Returns the value of themeanrecord component.- Returns:
- the value of the
meanrecord component
-
median
public double median()Returns the value of themedianrecord component.- Returns:
- the value of the
medianrecord component
-
min
public double min()Returns the value of theminrecord component.- Returns:
- the value of the
minrecord component
-
max
public double max()Returns the value of themaxrecord component.- Returns:
- the value of the
maxrecord component
-
stdDev
public double stdDev()Returns the value of thestdDevrecord component.- Returns:
- the value of the
stdDevrecord component
-
p5
public double p5()Returns the value of thep5record component.- Returns:
- the value of the
p5record component
-
p95
public double p95()Returns the value of thep95record component.- Returns:
- the value of the
p95record component
-
ciLower
public double ciLower()Returns the value of theciLowerrecord component.- Returns:
- the value of the
ciLowerrecord component
-
ciUpper
public double ciUpper()Returns the value of theciUpperrecord component.- Returns:
- the value of the
ciUpperrecord component
-