utils#

Functions

convert_yearly_fail_rate(fail_rate_per_year, dt)

Returns the failure rate of the time increment, dt, based on the given yearly failure rate

eq(x, y[, tol])

Checks for equality within a tolerance

get_random_instance([seed])

Return a numpy random instance with optional seed

interpolate(array, time_indices)

Returns the array interpolated to match the time indices

intersection(list1, list2)

Returns the intersection between two list while preserving the order

random_choice(random_instance, p_true)

Returns random choice based on uniform probability distribution

subtract(list1, list2)

Return difference between lists while preserving the order

unique(sequence)

Return list of unique elements while preserving the order