extract_cost_func_params#

caf.van.lgv_model.extract_cost_func_params(cost_funct_params, cost_func_name)[source]#

Extracts the cost function parameters from a tuple.

Parameters:
  • cost_funct_params (tuple[float, ...]) – Ordered parameters for the cost function.

  • cost_func_name (Literal["log_normal", "tanner"]) – Name of the cost function.

Returns:

Unpacked cost function parameters.

Return type:

dict[str, float]

Raises:

ValueError – If the cost function name is not recognised.