Enum Class Percentile.Method
- All Implemented Interfaces:
Serializable, Comparable<Percentile.Method>, Constable
- Enclosing class:
Percentile
Interpolation method for percentile calculation.
百分位数计算的插值方法
- Since:
- JDK 25, opencode-base-math V1.0.3
- Author:
- Leon Soo
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionReturns the higher of the two adjacent data points.Linear interpolation between adjacent data points.Returns the lower of the two adjacent data points.Returns the midpoint of the two adjacent data points.Returns the nearest data point (lower on tie). -
Method Summary
Modifier and TypeMethodDescriptionstatic Percentile.MethodReturns the enum constant of this class with the specified name.static Percentile.Method[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LINEAR
Linear interpolation between adjacent data points. 相邻数据点之间的线性插值 -
LOWER
Returns the lower of the two adjacent data points. 返回两个相邻数据点中较低的值 -
HIGHER
Returns the higher of the two adjacent data points. 返回两个相邻数据点中较高的值 -
NEAREST
Returns the nearest data point (lower on tie). 返回最近的数据点(相等时取较低值) -
MIDPOINT
Returns the midpoint of the two adjacent data points. 返回两个相邻数据点的中点
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-