jsynoptic.builtin
Class GaussianRandomSource
java.lang.Object
simtools.data.ValueProvider
simtools.data.DataSource
jsynoptic.builtin.RandomSource
jsynoptic.builtin.GaussianRandomSource
public class GaussianRandomSource
- extends RandomSource
Generate numbers using a gaussian distribution
Field Summary |
static java.lang.String |
ID_PREFIX
|
Constructor Summary |
GaussianRandomSource(java.lang.String name,
double mean,
double stdDev)
|
GaussianRandomSource(java.lang.String name,
double mean,
double stdDev,
long nSamples)
|
GaussianRandomSource(java.lang.String name,
long seed,
double mean,
double stdDev)
|
GaussianRandomSource(java.lang.String name,
long seed,
double mean,
double stdDev,
long nSamples)
|
Methods inherited from class jsynoptic.builtin.RandomSource |
computeLastIndex, computeMax, computeMin, computeStartIndex, fillValues, getDoubleMax, getDoubleMin, getDoubleValue, getInformation, getLastIndex, getMax, getMaxIndex, getMin, getStartIndex, getValue |
Methods inherited from class simtools.data.DataSource |
addEndNotificationListener, addListener, computeSortedOrder, createEmptyDataSource, equals, getAuxiliarySources, getByteMax, getByteMin, getChoiceFormat, getDataSourceInformationClass, getFloatMax, getFloatMin, getIntegerMax, getIntegerMin, getLongMax, getLongMin, getShortMax, getShortMin, getSortedOrder, getSourceDependencies, isAuxiliary, isComparable, isCompound, notifyEndNotificationListeners, notifyListenersForDataReplaced, notifyListenersForDataReplaced, notifyListenersForIndexRangeChange, notifyListenersForInfoChange, notifyListenersForOrderChange, notifyListenersForValueChange, notifyListenersForValueRangeChange, removeEndNotificationListener, removeListener, setSlice, sortedOrder, updateSortedOrder |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ID_PREFIX
public static final java.lang.String ID_PREFIX
- See Also:
- Constant Field Values
GaussianRandomSource
public GaussianRandomSource(java.lang.String name,
double mean,
double stdDev)
- Parameters:
mean
- stdDev
-
GaussianRandomSource
public GaussianRandomSource(java.lang.String name,
double mean,
double stdDev,
long nSamples)
- Parameters:
mean
- stdDev
- nSamples
-
GaussianRandomSource
public GaussianRandomSource(java.lang.String name,
long seed,
double mean,
double stdDev)
- Parameters:
seed
- mean
- stdDev
-
GaussianRandomSource
public GaussianRandomSource(java.lang.String name,
long seed,
double mean,
double stdDev,
long nSamples)
- Parameters:
seed
- mean
- stdDev
- nSamples
-
setInfo
protected void setInfo()
nextRandomValue
protected double nextRandomValue()
- Description copied from class:
RandomSource
- For subclasses to implement according to their distribution
- Specified by:
nextRandomValue
in class RandomSource
getMean
public double getMean()
- Returns:
- Returns the mean.
getStandardDeviation
public double getStandardDeviation()
- Returns:
- Returns the standard deviation.