ruspy.model_code.cost_functions.calc_obs_costs

ruspy.model_code.cost_functions.calc_obs_costs(num_states, maint_func, params, scale)[source]

Calculating the observed costs of maintenance and replacement for each state.

Parameters
num_statespython:int

The size of the state space.

maint_funcpython:callable()

see Maintenance cost function

paramsnumpy.ndarray

see Cost parameters

scalenumpy.float

see Scale

Returns
obs_costsnumpy.ndarray

see Observed costs