dwvisser.monte
Class DataSet
java.lang.Object
|
+--dwvisser.monte.DataSet
- All Implemented Interfaces:
- WeightingFunction
- public class DataSet
- extends java.lang.Object
- implements WeightingFunction
Contains a set of numbers, can return set size, mean, and standard deviation.
- Version:
- Author:
- dwvisser
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataSet
public DataSet(WeightingFunction wf)
- Creates new DataSet
DataSet
public DataSet()
- Use standard non-biased weight.
add
public void add(double x)
getData
public double[] getData()
getMean
public double getMean()
getSD
public double getSD()
getSize
public int getSize()
getSEM
public double getSEM()
getHistogram
public int[] getHistogram(double min,
double max,
double step)
main
public static void main(java.lang.String[] args)
weight
public double weight(double value)
- Specified by:
weight
in interface WeightingFunction