rb_decay¶
- rb_decay(x, y, b=0.5)[source]¶
Get base of exponential decay function which is assumed to be close to 1.
This assumes following model:
To estimate the base of decay function
, we considerand thus,
By considering the ratio of y values at
to ,From this relationship, we can estimate
as- Parameters:
x (ndarray) – Array of x values.
y (ndarray) – Array of y values.
b (float) – Asymptote of decay function.
- Returns:
Base of decay function.
- Return type:
float