Ejemplo n.º 1
0
  /**
   * Sets which attributes are to be Discretized (only numeric attributes among the selection will
   * be Discretized).
   *
   * @param attributes an array containing indexes of attributes to Discretize. Since the array will
   *     typically come from a program, attributes are indexed from 0.
   * @throws IllegalArgumentException if an invalid set of ranges is supplied
   */
  public void setAttributeIndicesArray(int[] attributes) {

    setAttributeIndices(Range.indicesToRangeList(attributes));
  }
Ejemplo n.º 2
0
 /**
  * Sets which attributes are to be transoformed to nominal. (only numeric attributes among the
  * selection will be transformed).
  *
  * @param value an array containing indexes of attributes to nominalize. Since the array will
  *     typically come from a program, attributes are indexed from 0.
  * @throws IllegalArgumentException if an invalid set of ranges is supplied
  */
 public void setAttributeIndicesArray(int[] value) {
   setAttributeIndices(Range.indicesToRangeList(value));
 }