Indicado.SR.eval-exclamation-mark
You're seeing just the function
eval-exclamation-mark
, go back to Indicado.SR module for more information.
Calculates SR for the list. Raises exceptions when arguments does not satisfy needed conditions to calculate SR.
Raises NotEnoughDataError
if the given list is not longh enough for calculating RS.
Raises BadPeriodError
if period is an unacceptable number.
Examples
iex> Indicado.SR.eval!([1, 3, 5, 7], 2)
[100.0, 100.0, 100.0]
iex> Indicado.SR.eval!([1, 3], 3)
** (NotEnoughDataError) not enough data
iex> Indicado.SR.eval!([1, 3, 4], 0)
** (BadPeriodError) bad period