~ioiojo/kiwi

c50f3e2bb047c5535bff1958bbe11a84ea5053cb — Andy Weidenbaum 3 years ago 188c764
fix mifflin–st. jeor equation

see
- https://en.wikipedia.org/wiki/Harris–Benedict_equation
1 files changed, 1 insertions(+), 1 deletions(-)

M src/plan.rs
M src/plan.rs => src/plan.rs +1 -1
@@ 160,7 160,7 @@ impl From<Profile> for Plan {
fn bmr_from_profile(weight: f64, height: f64, age: i64, gender: &Gender) -> f64 {
    let s = match gender {
        Gender::Male => 5.0,
        Gender::Female => -16.0,
        Gender::Female => -161.0,
    };
    let a = age as f64 * 5.0;
    let w = weight * 10.0;