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:
cf

Cost of failures

cp

Cost of preventive replacement

ar

Age of replacement

Methods

conditional_expectation

Conditional expected reward

sample

Reward conditional sampling.

property ar#

Age of replacement

Returns:
ndarray
property cf#

Cost of failures

Returns:
ndarray
conditional_expectation(time)[source]#

Conditional expected reward

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