Record Class AccessPatternAnalyzer.DistributionStats
java.lang.Object
java.lang.Record
com.loomcache.server.metrics.AccessPatternAnalyzer.DistributionStats
- Enclosing class:
AccessPatternAnalyzer
public static record AccessPatternAnalyzer.DistributionStats(double mean, double stdDev, double skewness, double kurtosis, long minValue, long maxValue)
extends Record
Distribution statistics.
-
Constructor Summary
ConstructorsConstructorDescriptionDistributionStats(double mean, double stdDev, double skewness, double kurtosis, long minValue, long maxValue) Creates an instance of aDistributionStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doublekurtosis()Returns the value of thekurtosisrecord component.longmaxValue()Returns the value of themaxValuerecord component.doublemean()Returns the value of themeanrecord component.longminValue()Returns the value of theminValuerecord component.doubleskewness()Returns the value of theskewnessrecord component.doublestdDev()Returns the value of thestdDevrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DistributionStats
public DistributionStats(double mean, double stdDev, double skewness, double kurtosis, long minValue, long maxValue) Creates an instance of aDistributionStatsrecord class.- Parameters:
mean- the value for themeanrecord componentstdDev- the value for thestdDevrecord componentskewness- the value for theskewnessrecord componentkurtosis- the value for thekurtosisrecord componentminValue- the value for theminValuerecord componentmaxValue- the value for themaxValuerecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
mean
public double mean()Returns the value of themeanrecord component.- Returns:
- the value of the
meanrecord component
-
stdDev
public double stdDev()Returns the value of thestdDevrecord component.- Returns:
- the value of the
stdDevrecord component
-
skewness
public double skewness()Returns the value of theskewnessrecord component.- Returns:
- the value of the
skewnessrecord component
-
kurtosis
public double kurtosis()Returns the value of thekurtosisrecord component.- Returns:
- the value of the
kurtosisrecord component
-
minValue
public long minValue()Returns the value of theminValuerecord component.- Returns:
- the value of the
minValuerecord component
-
maxValue
public long maxValue()Returns the value of themaxValuerecord component.- Returns:
- the value of the
maxValuerecord component
-