Class Discretizer.Discretization

java.lang.Object
edu.cmu.tetrad.data.Discretizer.Discretization
Enclosing class:
Discretizer

public static class Discretizer.Discretization extends Object
A discretization specification for a continuous variable.
  • Method Details

    • getVariable

      public final DiscreteVariable getVariable()
      Retrieves the variable associated with the object.
      Returns:
      the variable associated with the object
    • getData

      public final int[] getData()
      Retrieves the data associated with the discretization.
      Returns:
      the discretized data as an array of integers
    • toString

      public final String toString()
      Returns a string representation of the Discretization object. The string contains the discretization information for the associated variable.
      Overrides:
      toString in class Object
      Returns:
      a string representation of the Discretization object