Example usage for weka.core Range indicesToRangeList

List of usage examples for weka.core Range indicesToRangeList

Introduction

In this page you can find the example usage for weka.core Range indicesToRangeList.

Prototype

public staticString indicesToRangeList(int[] indices) 

Source Link

Document

Creates a string representation of the indices in the supplied array.

Usage

From source file:classifier.CustomStringToWordVector.java

License:Open Source License

/**
 * Sets which attributes are to be processed.
 * /*from  ww  w .j  ava 2 s  . c o m*/
 * @param attributes
 *            an array containing indexes of attributes to process. 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));
}

From source file:com.openkm.kea.filter.KEAPhraseFilter.java

License:Open Source License

/**
 * Set which attributes are to be processed
 *
 * @param attributes an array containing indexes of attributes to select.
 * Since the array will typically come from a program, attributes are indexed
 * from 0.// www . j  av a  2s. c o m
 */
public void setAttributeIndicesArray(int[] attributes) {

    setAttributeIndices(Range.indicesToRangeList(attributes));
}