Package jsl.utilities.random.rvariable
Class RVFactory
- java.lang.Object
-
- jsl.utilities.random.rvariable.RVFactory
-
public class RVFactory extends java.lang.Object
Permits construction of random variables based on factory instances defined by controls. The controls hold the (key, value) pairs that represent distributional parameters by name. The user of the control is responsible for setting legal parameter values on the controls as required by the desired random variable type. The returned control can be used to make many instances of random variables based on its current parameter settings.
-
-
Constructor Summary
Constructors Constructor Description RVFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Optional<RVControls>
getRVControls(RVariableIfc.RVType type)
-
-
-
Method Detail
-
getRVControls
public static java.util.Optional<RVControls> getRVControls(RVariableIfc.RVType type)
- Parameters:
type
- the type of the random variable- Returns:
- an optional holding the control or empty if the type was not found
-
-