adams.gui.visualization.stats.core
Class SubSample

java.lang.Object
  extended by adams.gui.visualization.stats.core.SubSample

public class SubSample
extends Object

Class for taking a smaller sample of a dataset. Used by the matrix class.

Version:
$Revision: 4584 $
Author:
msf8

Field Summary
protected  Instances m_Instances
          Instances to plot
protected  double m_Percentage
          Percentage of data to take
 
Constructor Summary
SubSample(Instances inst, double percent)
          constructor
 
Method Summary
 Instances sample()
          Take a sample of the dataset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_Instances

protected Instances m_Instances
Instances to plot


m_Percentage

protected double m_Percentage
Percentage of data to take

Constructor Detail

SubSample

public SubSample(Instances inst,
                 double percent)
constructor

Parameters:
inst - Instances for plotting
percent - Percent of data for sub sample
Method Detail

sample

public Instances sample()
                 throws Exception
Take a sample of the dataset

Returns:
Instances containing specified instances of the original instances
Throws:
Exception


Copyright © 2013 University of Waikato, Hamilton, NZ. All Rights Reserved.