Record Class CentralityUtil.CentralityStats
java.lang.Object
java.lang.Record
cloud.opencode.base.graph.algorithm.CentralityUtil.CentralityStats
- Record Components:
min- minimum value | 最小值max- maximum value | 最大值mean- average value | 平均值stdDev- standard deviation | 标准差count- vertex count | 顶点数
- Enclosing class:
CentralityUtil
public static record CentralityUtil.CentralityStats(double min, double max, double mean, double stdDev, int count)
extends Record
Centrality statistics record.
中心性统计信息记录。
- Since:
- JDK 25, opencode-base-graph V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Summary
ConstructorsConstructorDescriptionCentralityStats(double min, double max, double mean, double stdDev, int count) Creates an instance of aCentralityStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcount()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.doublemin()Returns the value of theminrecord component.doublestdDev()Returns the value of thestdDevrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
CentralityStats
public CentralityStats(double min, double max, double mean, double stdDev, int count) Creates an instance of aCentralityStatsrecord class.
-
-
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. -
min
-
max
-
mean
-
stdDev
-
count
-