public abstract class RandomNumber extends Number implements Distribution, NullaryFunction<Double>
BasicFunction.Differentiable<N extends Number,F extends BasicFunction<N>>, BasicFunction.Integratable<N extends Number,F extends BasicFunction<N>>| Modifier | Constructor and Description |
|---|---|
protected |
RandomNumber() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkProbabilty(double aProbabilty) |
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() |
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 void setSeed(long seed)
protected void checkProbabilty(double aProbabilty)
protected abstract double generate()
protected final Random random()
Copyright © 2018 Optimatika. All rights reserved.