Class SubSample
- java.lang.Object
-
- 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$
- Author:
- msf8
-
-
Field Summary
Fields Modifier and Type Field Description protected SpreadSheet
m_Data
Instances to plotprotected double
m_Percentage
Percentage of data to take
-
Constructor Summary
Constructors Constructor Description SubSample(SpreadSheet inst, double percent)
constructor
-
-
-
Field Detail
-
m_Data
protected SpreadSheet m_Data
Instances to plot
-
m_Percentage
protected double m_Percentage
Percentage of data to take
-
-
Constructor Detail
-
SubSample
public SubSample(SpreadSheet inst, double percent)
constructor- Parameters:
inst
- Instances for plottingpercent
- Percent of data for sub sample
-
-
Method Detail
-
sample
public SpreadSheet sample() throws Exception
Take a sample of the dataset- Returns:
- Instances containing specified instances of the original instances
- Throws:
Exception
-
-