org.jscience.physics.nuclear.kinematics.montecarlo
Class DataSet

java.lang.Object
  extended by org.jscience.physics.nuclear.kinematics.montecarlo.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.


Constructor Summary
DataSet()
          Use standard non-biased weight.
DataSet(WeightingFunction wf)
          Creates new DataSet
 
Method Summary
 void add(double x)
          DOCUMENT ME!
 double[] getData()
          DOCUMENT ME!
 int[] getHistogram(double min, double max, double step)
          DOCUMENT ME!
 double getMean()
          DOCUMENT ME!
 double getSD()
          DOCUMENT ME!
 double getSEM()
          DOCUMENT ME!
 int getSize()
          DOCUMENT ME!
static void main(java.lang.String[] args)
          DOCUMENT ME!
 double weight(double value)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSet

public DataSet(WeightingFunction wf)
Creates new DataSet


DataSet

public DataSet()
Use standard non-biased weight.

Method Detail

add

public void add(double x)
DOCUMENT ME!

Parameters:
x - DOCUMENT ME!

getData

public double[] getData()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getMean

public double getMean()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getSD

public double getSD()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getSize

public int getSize()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getSEM

public double getSEM()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getHistogram

public int[] getHistogram(double min,
                          double max,
                          double step)
DOCUMENT ME!

Parameters:
min - DOCUMENT ME!
max - DOCUMENT ME!
step - DOCUMENT ME!
Returns:
DOCUMENT ME!

main

public static void main(java.lang.String[] args)
DOCUMENT ME!

Parameters:
args - DOCUMENT ME!

weight

public double weight(double value)
DOCUMENT ME!

Specified by:
weight in interface WeightingFunction
Parameters:
value - DOCUMENT ME!
Returns:
DOCUMENT ME!