test(growth): fix doctest for centile and percentile
All checks were successful
continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
This commit is contained in:
@@ -17,7 +17,7 @@ defmodule Growth.Calc.Centile do
|
||||
...> [-1.2, -1.6318, 16.049, 0.10038]
|
||||
...> ]
|
||||
iex> Enum.map(measures, &apply(Growth.Calc.Centile, :compute, &1))
|
||||
[:na, :na, 19.0]
|
||||
[13.05127032828574, 27.884359024082663, 14.37765739914362]
|
||||
|
||||
"""
|
||||
|
||||
@@ -32,7 +32,7 @@ defmodule Growth.Calc.Centile do
|
||||
## Examples:
|
||||
|
||||
iex> Growth.Calc.Centile.compute(0.0, -1.6318, 16.049, 0.10038)
|
||||
19.0
|
||||
16.049
|
||||
|
||||
"""
|
||||
def compute(z_score, l, m, s) when -3 <= z_score and z_score <= 3 do
|
||||
|
Reference in New Issue
Block a user