Enum Class Percentile.Method

java.lang.Object
java.lang.Enum<Percentile.Method>
cloud.opencode.base.math.stats.Percentile.Method
All Implemented Interfaces:
Serializable, Comparable<Percentile.Method>, Constable
Enclosing class:
Percentile

public static enum Percentile.Method extends Enum<Percentile.Method>
Interpolation method for percentile calculation. 百分位数计算的插值方法
Since:
JDK 25, opencode-base-math V1.0.3
Author:
Leon Soo
See Also:
  • Enum Constant Details

    • LINEAR

      public static final Percentile.Method LINEAR
      Linear interpolation between adjacent data points. 相邻数据点之间的线性插值
    • LOWER

      public static final Percentile.Method LOWER
      Returns the lower of the two adjacent data points. 返回两个相邻数据点中较低的值
    • HIGHER

      public static final Percentile.Method HIGHER
      Returns the higher of the two adjacent data points. 返回两个相邻数据点中较高的值
    • NEAREST

      public static final Percentile.Method NEAREST
      Returns the nearest data point (lower on tie). 返回最近的数据点(相等时取较低值)
    • MIDPOINT

      public static final Percentile.Method MIDPOINT
      Returns the midpoint of the two adjacent data points. 返回两个相邻数据点的中点
  • Method Details

    • values

      public static Percentile.Method[] 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

      public static Percentile.Method valueOf(String name)
      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 name
      NullPointerException - if the argument is null