pastas.solver.least_squares.LeastSquaresBase.get_parameter_sample#
- pastas.solver.least_squares.LeastSquaresBase.get_parameter_sample(name: str | None = None, n: int | None = None, max_iter: int = 10) pastas.typing.ArrayLike#
Obtain a parameter sets for monte carlo analyses.
- Parameters:
name (str, optional) – Name of the stressmodel or model component to obtain the parameters for.
n (int, optional) – Number of random samples drawn from the bivariate normal distribution. If None, the number of samples is determined by the number of parameters that are varied, using 10^k where k is the number of parameters that are varied.
max_iter (int, optional) – maximum number of iterations for truncated multivariate sampling, default is 10. Increase this value if number of accepted parameter samples is lower than n.
- Returns:
array with N parameter samples.
- Return type:
array_like
Notes
The parameter samples are drawn from a multivariate normal distribution, and thus assume that the a normal distribution applies for the parameter uncertainty.