-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathctci.cpp
More file actions
56 lines (45 loc) · 1.44 KB
/
Copy pathctci.cpp
File metadata and controls
56 lines (45 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#include "library.h"
#include <iostream>
#include <math.h>
double tci::weight::james(double height, double weight, tci::BiologicalSex sex) {
switch (sex) {
case male:
return 1.1 * weight - 128 * ((weight / height) * (weight / height));
case female:
return 1.07 * weight - 148 * ((weight / height) * (weight / height));
case indeterminate:
throw tci::BiologicalSexException();
}
}
double tci::weight::boer(double height, double weight, tci::BiologicalSex sex) {
double lbm;
switch (sex) {
case male:
lbm = (0.407 * weight) + (0.267 * height) - 19.2;
break;
case female:
lbm = (0.252 * weight) + (0.473 * height) - 48.3;
break;
case indeterminate:
throw tci::BiologicalSexException();
}
return lbm;
}
double tci::weight::hume66(double height, double weight, tci::BiologicalSex sex) {
return 0;
}
double tci::weight::hume71(double height, double weight, tci::BiologicalSex sex) {
return 0;
}
double tci::weight::jaanmhastion(double height, double weight, tci::BiologicalSex sex) {
return 0;
}
double tci::weight::bmi(double height, double weight) {
return 0;
}
double tci::weight::idealBodyWeight(double height, double weight, tci::BiologicalSex sex) {
return 0;
}
double tci::weight::adjustedBodyWeight(double height, double weight, tci::BiologicalSex sex) {
return 0;
}