/*
 *   This program is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program.  If not, see .
 */

/*
 *    RemoveRange.java
 *    Copyright (C) 1999-2012 University of Waikato, Hamilton, New Zealand
 *
 */

package weka.filters.unsupervised.instance;

import java.util.Enumeration;
import java.util.Vector;

import weka.core.*;
import weka.core.Capabilities.Capability;
import weka.filters.Filter;
import weka.filters.UnsupervisedFilter;

/**
 *  A filter that removes a given range of instances of
 * a dataset.
 * 

* * * Valid options are: *

* *

 * -R <inst1,inst2-inst4,...>
 *  Specifies list of instances to select. First and last
 *  are valid indexes. (required)
 * 
* *
 * -V
 *  Specifies if inverse of selection is to be output.
 * 
* * * * @author Eibe Frank (eibe@cs.waikato.ac.nz) * @version $Revision: 14508 $ */ public class RemoveRange extends Filter implements UnsupervisedFilter, OptionHandler, WeightedAttributesHandler, WeightedInstancesHandler { /** for serialization */ static final long serialVersionUID = -3064641215340828695L; /** Range of instances requested by the user. */ private final Range m_Range = new Range("first-last"); /** * Returns an enumeration describing the available options. * * @return an enumeration of all the available options. */ @Override public Enumeration

Ads help maintain this website.