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, shortValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetExpectedandThen, get, getAsDoublepublic final double doubleValue()
doubleValue in interface NullaryFunction<Double>doubleValue in class Numberpublic final float floatValue()
floatValue in class Numberpublic double getStandardDeviation()
getStandardDeviation in interface DistributionDistribution.getStandardDeviation(),
Distribution.getVariance()public double getVariance()
getVariance in interface DistributionDistribution.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.