params: A named list of parameters to be flattened. Should be in a form to be passed as the with_params argument to most distribution functions.
bounds: List of parameter bounds as returned by dist$get_param_bounds()
flat_params: A named numeric vector of parameters
Returns
flatten_params returns a 'flattened' vector of parameters. It is intended as an adapter for multi-dimensional optimisation functions to distribution objects.
flatten_params_matrix returns a 'flattened' matrix of parameters. It is intended as an adapter for multi-dimensional optimisation functions to distribution objects. Each column corresponds to one input element.
flatten_bounds returns a named list of vectors with names lower
and upper. Containing the upper and lower bounds of each parameter.
inflate_params returns an 'inflated' list of parameters. This can be passed as the with_params argument to most distribution functions.