public abstract class RandomNumber extends Number implements Distribution, NullaryFunction<Double>
BasicFunction.Differentiable<N extends Number,F extends BasicFunction>, BasicFunction.Integratable<N extends Number,F extends BasicFunction>, BasicFunction.PlainUnary<T,R>
Modifier | Constructor and Description |
---|---|
protected |
RandomNumber() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkProbabilty(double probabilty) |
double |
doubleValue() |
float |
floatValue() |
protected abstract double |
generate() |
double |
getStandardDeviation()
Subclasses must override either getStandardDeviation() or getVariance()!
|
double |
getVariance()
Subclasses must override either getStandardDeviation() or getVariance()!
|
int |
intValue() |
Double |
invoke() |
long |
longValue() |
SampleSet |
newSampleSet(int numberOfSamples) |
protected Random |
random() |
void |
setSeed(long seed) |
String |
toString() |
byteValue, shortValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getExpected
andThen, get, getAsDouble
public final double doubleValue()
doubleValue
in interface NullaryFunction<Double>
doubleValue
in class Number
public final float floatValue()
floatValue
in class Number
public double getStandardDeviation()
getStandardDeviation
in interface Distribution
Distribution.getStandardDeviation()
,
Distribution.getVariance()
public double getVariance()
getVariance
in interface Distribution
Distribution.getStandardDeviation()
,
Distribution.getVariance()
public final Double invoke()
invoke
in interface NullaryFunction<Double>
public SampleSet newSampleSet(int numberOfSamples)
public void setSeed(long seed)
protected void checkProbabilty(double probabilty)
protected abstract double generate()
protected final Random random()
Copyright © 2019 Optimatika. All rights reserved.