Geometric RVParameters
Properties
Returns an unmodifiable Set of the parameter's names for double[] Parameters
Returns an unmodifiable Set of the parameter's names for Double Parameters
Returns an unmodifiable Set of the parameter's names for Integer Parameters
The number of defined parameters (with names)
Functions
Returns an array containing the double and integer valued parameters. The elements of the array are the parameter values based on the order of their names in doubleParameterNames and integerParameterNames. If the parameter is integer valued, it is converted to a double value.
Creates a map where the keys are parameter names and the values are the corresponding parameter values as a DoubleArray.
Returns a map containing the double and integer valued parameters. The key to the map is the name of the parameter, and the value is the current value of the parameter. If the parameter is integer valued, it is converted to a double value.
Changes the value associated with the parameterName with the supplied value. The supplied array is copied.
Changes the value associated with the parameterName to the supplied value. If the parameterName is null or there is no parameter for the supplied parameterName, then an exception occurs
Changes the value of the parameterName to the supplied value. If the parameterName is null or there is no parameter for the supplied parameterName, then an exception occurs.
A convenience method to change the named parameter to the supplied value. This will work with either double or integer parameters. Integer parameters are coerced to the rounded-up value of the supplied double, provided that the integer can hold the supplied value. If the named parameter is not associated with the parameters, then no change occurs. In other words, the action fails silently by returning false.
Checks if the supplied key is contained in the parameters
Copies from the supplied parameters into the parameters
Gets the value associated with the supplied parameterName as a double[]. If the parameterName is null or there is no parameter for the supplied parameterName, then an exception occurs
Returns the size (array length) of the DoubleArray parameter. If the parameterName is null or there is no parameter for the supplied parameterName, then an exception occurs
Gets the value associated with the supplied parameterName as a double. If the parameterName is null or there is no parameter for the supplied parameterName, then an exception occurs
Populates the parameters of the current object using values from the supplied map. The map associates parameter names with DoubleArray
values. If the parameter name in the map is not associated with a name of the random variable's parameters, then no change occurs.
Returns true if at least one double[] parameter has been set
Returns true if at least one Integer parameter has been set
Gets the value associated with the supplied parameterName. If the parameterName is null or there is no parameter for the supplied parameterName, then an exception occurs.
Can be used to determine which of the getXParameter(String key) methods to call