Skip to contents

The model's current parameter vector, with names where the model exposes them.

Usage

model_parameters(model)

Arguments

model

a corehydro_model from one of the model_*() constructors.

Value

A named list with values (numeric), names (plain-word parameter labels), and symbols (the library's own symbols). The two name vectors are empty for any model whose parameter vector is not a single distribution's, which is every family other than a stationary univariate one.

Examples

peaks <- c(12500, 15300, 8900, 22100, 18700, 14200, 9800, 28500, 17400, 11600)
model_parameters(model_univariate("Normal", peaks))
#> $values
#> [1] 15900.00  6025.87
#> 
#> $names
#> [1] "mean"    "std dev"
#> 
#> $symbols
#> [1] "µ" "σ"
#>