AgeReplacementReward#
- class relife.economic.AgeReplacementReward(cf, cp, ar)[source]#
Age replacement reward.
- Parameters:
- cffloat or 1darray
The cost(s) of failure
- cpfloat or 1darray
The cost(s) of preventive replacement
- Attributes:
Methods
Conditional expected reward
Reward conditional sampling.
- property ar#
Age of replacement
- Returns:
- ndarray
- property cf#
Cost of failures
- Returns:
- ndarray
- property cp#
Cost of preventive replacement
- Returns:
- ndarray
- property nb_assets#
Number of assets.
- property ndim#
Cost number of dimension (either 0 or 1)
- sample(time)[source]#
Reward conditional sampling.
- Parameters:
- timendarray
Time duration values.
- Returns:
- ndarray
Random drawing of a reward with respect to time.
- property size#
Cost size