Statistics
Class RandomDataSource

java.lang.Object
  extended byStatistics.FixedBinDataSource
      extended byStatistics.RandomDataSource
All Implemented Interfaces:
jas.hist.DataSource, jas.hist.HasStyle, jas.hist.Rebinnable1DHistogramData

public class RandomDataSource
extends FixedBinDataSource

A normalized FixedBinDataSource fed by the samples of a random variable X conditioned on information available at time t.


Field Summary
 
Fields inherited from interface jas.hist.DataSource
DATE, DELTATIME, DOUBLE, INTEGER, STRING
 
Constructor Summary
RandomDataSource(java.lang.String name, java.lang.String xAxisLabel, RandomVariable X, int t, int nSamples, int nBins, boolean smoothBinHeights)
          Minimum/maximum of data range histogrammed are the actual minimum/maximum of the sample.
RandomDataSource(java.lang.String name, java.lang.String xAxisLabel, RandomVariable X, int t, int nSamples, int nBins, boolean smoothBinHeights, boolean normalizeArea, double min, double max)
          Minimum/maximum of data range histogrammed are are user defined.
RandomDataSource(java.lang.String name, java.lang.String xAxisLabel, RandomVariable X, int t, int nSamples, int nBins, boolean smoothBinHeights, boolean normalizeArea, double p, double q, double dummy)
          Minimum/maximum of data range histogrammed are chosen so that the 100p% smallest and 100q% largest (0< p,q< 1) data values are disregarded.
RandomDataSource(java.lang.String name, java.lang.String xAxisLabel, RandomVariable X, int t, int nSamples, int nBins, double p, double q)
          Minimum/maximum of data range histogrammed are chosen so that the 100p% smallest and 100q% largest (0< p,q< 1) data values are disregarded.
 
Method Summary
 double nextSampleValue()
          DATA GENERATION
 
Methods inherited from class Statistics.FixedBinDataSource
displayHistogram, displayHistogram, get_data, get_normalizeArea, get_nSamples, get_smoothBinHeights, getAxisLabels, getAxisType, getBins, getMax, getMin, getProgressIsReported, getStyle, getTitle, histogram, initBinCounts, initBinCounts, initBinCounts, isRebinnable, main, rebin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomDataSource

public RandomDataSource(java.lang.String name,
                        java.lang.String xAxisLabel,
                        RandomVariable X,
                        int t,
                        int nSamples,
                        int nBins,
                        boolean smoothBinHeights)

Minimum/maximum of data range histogrammed are the actual minimum/maximum of the sample. Histogram area is normalized. This needs memory.

Parameters:
name - title shown on histogram (descriptive of data set).
xAxisLabel - label shown on histogram x-axis.
X - random variable providing the data.
t - current time (determines information to condition X on).
nSamples - size of the data sample.
nBins - number of bins.
smoothBinHeights - see smoothing.

RandomDataSource

public RandomDataSource(java.lang.String name,
                        java.lang.String xAxisLabel,
                        RandomVariable X,
                        int t,
                        int nSamples,
                        int nBins,
                        boolean smoothBinHeights,
                        boolean normalizeArea,
                        double min,
                        double max)

Minimum/maximum of data range histogrammed are are user defined. Data values outside [min,max] are disregarded. This needs very little memory.

Parameters:
name - title shown on histogram (descriptive of data set).
xAxisLabel - label shown on histogram x-axis.
X - random variable providing the data.
t - current time (determines information to condition X on).
nSamples - size of the data sample.
nBins - number of bins.
smoothBinHeights - see smoothing.
normalizeArea - see normalizing.
min - only data in range [min,max] binned.
max - only data in range [min,max] binned.

RandomDataSource

public RandomDataSource(java.lang.String name,
                        java.lang.String xAxisLabel,
                        RandomVariable X,
                        int t,
                        int nSamples,
                        int nBins,
                        boolean smoothBinHeights,
                        boolean normalizeArea,
                        double p,
                        double q,
                        double dummy)

Minimum/maximum of data range histogrammed are chosen so that the 100p% smallest and 100q% largest (0< p,q< 1) data values are disregarded. This needs memory.

Note: the largest and smallest data value are discarded always.

Parameters:
name - title shown on histogram (descriptive of data set).
xAxisLabel - label shown on histogram x-axis.
nSamples - size of the data sample.
nBins - number of bins.
smoothBinHeights - see smoothing.
normalizeArea - see normalizing.
p - smallest 100p% (0< p< 1) of values disregarded in histograms.
q - largest 100q% (0< q< 1) of values disregarded in histograms.
dummy - parameter used to differentiate parameter signature. Assign any value.

RandomDataSource

public RandomDataSource(java.lang.String name,
                        java.lang.String xAxisLabel,
                        RandomVariable X,
                        int t,
                        int nSamples,
                        int nBins,
                        double p,
                        double q)

Minimum/maximum of data range histogrammed are chosen so that the 100p% smallest and 100q% largest (0< p,q< 1) data values are disregarded. Histogram is smoothed and area is normalized. This needs memory.

Note: the largest and smallest data value are discarded always.

Parameters:
name - title shown on histogram (descriptive of data set).
xAxisLabel - label shown on histogram x-axis.
nSamples - size of the data sample.
nBins - number of bins.
p - smallest 100p% (0< p< 1) of values disregarded in histograms.
q - largest 100q% (0< q< 1) of values disregarded in histograms.
Method Detail

nextSampleValue

public double nextSampleValue()
DATA GENERATION

Specified by:
nextSampleValue in class FixedBinDataSource