Class 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 Detail

      • RVFactory

        public RVFactory()
    • 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