Enum Class Kernel

java.lang.Object
java.lang.Enum<Kernel>
jdistlib.math.density.Kernel
All Implemented Interfaces:
Serializable, Comparable<Kernel>, Constable

public enum Kernel extends Enum<Kernel>
  • Enum Constant Details

    • GAUSSIAN

      public static final Kernel GAUSSIAN
    • RECTANGULAR

      public static final Kernel RECTANGULAR
    • TRIANGULAR

      public static final Kernel TRIANGULAR
    • EPANECHNIKOV

      public static final Kernel EPANECHNIKOV
    • BIWEIGHT

      public static final Kernel BIWEIGHT
    • COSINE

      public static final Kernel COSINE
    • OPTCOSINE

      public static final Kernel OPTCOSINE
  • Method Details

    • values

      public static Kernel[] 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 Kernel 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
    • getKernelValue

      public double getKernelValue()
    • getFactor

      public double getFactor()
    • process

      public double[] process(double bw, double[] kords)