From f3846cad24b4ee02f54a6f5c1e91ef56dd64917b Mon Sep 17 00:00:00 2001 From: Joao P Dubas Date: Thu, 3 Oct 2024 22:16:15 +0000 Subject: [PATCH] chore(growth): update doc to reflect percentile values This fixes an issue were the returned value represented the measurment at a given z-score (the centile value). --- lib/growth/growth.ex | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/lib/growth/growth.ex b/lib/growth/growth.ex index b7cc470..50522e4 100644 --- a/lib/growth/growth.ex +++ b/lib/growth/growth.ex @@ -119,33 +119,33 @@ defmodule Growth do results: [ %{ head_circumference: [ - {"day", {1.945484886994137, 42.800000000000004}}, - {"week", {1.945484886994137, 42.800000000000004}}, - {"month", {3.130859582465616, :na}} + {"day", {1.945484886994137, 0.9741416765426315}}, + {"week", {1.945484886994137, 0.9741416765426315}}, + {"month", {3.130859582465616, 0.9991285226182205}} ] }, - %{arm_circumference: [{"day", {1.9227031505630465, 15.499999999999996}}]}, - %{subscapular_skinfold: [{"day", {1.9437372448689536, 10.9}}]}, - %{triceps_skinfold: [{"day", {1.950277062993091, 13.500000000000353}}]}, + %{arm_circumference: [{"day", {1.9227031505630465, 0.9727413295221268}}]}, + %{subscapular_skinfold: [{"day", {1.9437372448689536, 0.9740364275897885}}]}, + %{triceps_skinfold: [{"day", {1.950277062993091, 0.974428447506235}}]}, %{ weight: [ - {"day", {1.982458622036091, 8.0}}, - {"week", {1.982458622036091, 8.0}}, - {"month", {3.0355951313091745, :na}} + {"day", {1.982458622036091, 0.9762860329545557}}, + {"week", {1.982458622036091, 0.9762860329545557}}, + {"month", {3.0355951313091745, 0.9987996926038037}} ] }, %{ height: [ - {"day", {1.956263992749136, 65.4}}, - {"week", {1.956263992749136, 65.4}}, - {"month", {3.4867331002754054, :na}} + {"day", {1.956263992749136, 0.9747829682259178}}, + {"week", {1.956263992749136, 0.9747829682259178}}, + {"month", {3.4867331002754054, 0.9997555204670452}} ] }, %{ bmi: [ - {"day", {1.1977344927294398, 18.703999850368085}}, - {"week", {1.1977344927294398, 18.703999850368085}}, - {"month", {1.5837461190318038, 18.703999850367996}} + {"day", {1.1977344927294398, 0.8844898016950435}}, + {"week", {1.1977344927294398, 0.8844898016950435}}, + {"month", {1.5837461190318038, 0.9433742474306444}} ] } ]