test(growth): fix doctest for centile and percentile
All checks were successful
continuous-integration/drone/pr Build is passing

This commit is contained in:
2024-10-05 12:58:36 +00:00
parent 1e36c29180
commit fa65a36852
2 changed files with 3 additions and 3 deletions

View File

@@ -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