Package jsl.utilities.random.rvariable
Class PearsonType6RV
- java.lang.Object
-
- jsl.utilities.random.rvariable.AbstractRVariable
-
- jsl.utilities.random.rvariable.PearsonType6RV
-
- All Implemented Interfaces:
java.util.function.DoubleSupplier,GetNameIfc,GetValueIfc,IdentityIfc,PreviousValueIfc,RandomIfc,GetRandomNumberStreamIfc,RNStreamControlIfc,SetRandomNumberStreamIfc,NewAntitheticInstanceIfc,RVariableIfc,SampleIfc
public final class PearsonType6RV extends AbstractRVariable
Pearson Type 6(alpha1, alpha2, beta) random variable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jsl.utilities.random.rvariable.RVariableIfc
RVariableIfc.RVType
-
-
Field Summary
-
Fields inherited from class jsl.utilities.random.rvariable.AbstractRVariable
myRNStream
-
-
Constructor Summary
Constructors Constructor Description PearsonType6RV(double alpha1, double alpha2, double beta)PearsonType6RV(double alpha1, double alpha2, double beta, int streamNum)PearsonType6RV(double alpha1, double alpha2, double beta, RNStreamIfc rng)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected doublegenerate()doublegetAlpha1()doublegetAlpha2()doublegetBeta()static RVControlsmakeControls()The keys are "alpha1" with default value 2.0 and "alpha2" with default value 3.0, and "beta" with default value 1.0PearsonType6RVnewInstance(RNStreamIfc rng)java.lang.StringtoString()-
Methods inherited from class jsl.utilities.random.rvariable.AbstractRVariable
advanceToNextSubstream, getAntitheticOption, getId, getName, getPreviousValue, getRandomNumberStream, getValue, newAntitheticInstance, newInstance, resetStartStream, resetStartSubstream, sample, setAntitheticOption, setName, setPreviousValue, setRandomNumberStream
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jsl.utilities.random.rng.GetRandomNumberStreamIfc
getStreamNumber
-
Methods inherited from interface jsl.utilities.random.rvariable.RVariableIfc
asDoubleStream, getAsDouble, getSumOfValues, newInstance
-
Methods inherited from interface jsl.utilities.random.rng.SetRandomNumberStreamIfc
setRandomNumberStream
-
-
-
-
Constructor Detail
-
PearsonType6RV
public PearsonType6RV(double alpha1, double alpha2, double beta)
-
PearsonType6RV
public PearsonType6RV(double alpha1, double alpha2, double beta, int streamNum)
-
PearsonType6RV
public PearsonType6RV(double alpha1, double alpha2, double beta, RNStreamIfc rng)
-
-
Method Detail
-
newInstance
public PearsonType6RV newInstance(RNStreamIfc rng)
- Parameters:
rng- the RngIfc to use- Returns:
- a new instance with same parameter value
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getAlpha1
public double getAlpha1()
-
getAlpha2
public double getAlpha2()
-
getBeta
public double getBeta()
-
generate
protected double generate()
- Specified by:
generatein classAbstractRVariable- Returns:
- the randomly generated variate
-
makeControls
public static RVControls makeControls()
The keys are "alpha1" with default value 2.0 and "alpha2" with default value 3.0, and "beta" with default value 1.0- Returns:
- a control for PearsonType6 random variables
-
-