Class Weibull
java.lang.Object
org.ojalgo.random.RandomNumber
org.ojalgo.random.Weibull
- All Implemented Interfaces:
Comparable<RandomNumber>, DoubleSupplier, Supplier<Double>, BasicFunction, NullaryFunction<Double>, PrimitiveFunction.Nullary, Distribution, AccessScalar<Double>, ComparableNumber<RandomNumber>, NumberDefinition
Useful as length of life distribution in reliability theory.
-
Nested Class Summary
Nested classes/interfaces inherited from interface BasicFunction
BasicFunction.Differentiable<N,F>, BasicFunction.Integratable<N, F>, BasicFunction.PlainUnary<T, R> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected doublegenerate()doubledoubleSubclasses must override either getStandardDeviation() or getVariance()!Methods inherited from class RandomNumber
checkProbabilty, compareTo, doubleValue, floatValue, getStandardDeviation, intValue, invoke, longValue, newSampleSet, random, setRandom, setSeed, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface NullaryFunction
andThen, get, getAsDoubleMethods inherited from interface NumberDefinition
booleanValue, byteValue, shortValue
-
Field Details
-
myShape
private final double myShape -
myRate
private final double myRate
-
-
Constructor Details
-
Weibull
public Weibull() -
Weibull
public Weibull(double lambda, double beta)
-
-
Method Details
-
getExpected
public double getExpected() -
getVariance
public double getVariance()Description copied from class:RandomNumberSubclasses must override either getStandardDeviation() or getVariance()!- Specified by:
getVariancein interfaceDistribution- Overrides:
getVariancein classRandomNumber- See Also:
-
generate
protected double generate()- Specified by:
generatein classRandomNumber
-