public double partOfVDOTSpeed double VDOT TrainingIntensity intensity

 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
public double partOfVDOTSpeed(double VDOT, TrainingIntensity intensity, Double durationS) {
if (VDOT == 0) {
return 0;
}
if (intensity == null) {
return 1.;
}
/*if (VDOT <= 30) {
switch (intensity) {
case min:
return 0.6160983199833118;
case very_easy:
return 0.6160983199833118;
case easy:
return 0.7162152922554553;
case medium:
return 0.822013102347746;
case threshold:
return 0.8829607966836404;
case interval:
return 0.9593141538433965;
case high:
return 1.000082239550086;
case max:
return 1.5913849829939473;
default:
return 0.;
}
}*/
switch (intensity) {
case min:
return 0.85 * Math.pow(VDOT, -.0946224967888881);
case very_easy:
return 0.85 * Math.pow(VDOT, -.0946224967888881);
case easy:
return 0.988126373130878 * Math.pow(VDOT, -.0946224967888881);
case medium:
return 0.973079893560786 * Math.pow(VDOT, -0.0496030767709346);
case threshold:
return 1.15861147077132 * Math.pow(VDOT, -0.0798826786330353);
case interval:
return 1.23712559250841 * Math.pow(VDOT, -0.0747758105623243);
case high:
return 1.06833973262497 * Math.pow(VDOT, -0.0194118564981047);
case max:
return 1.7 * Math.pow(VDOT, -0.0194118564981047);
default:
return 0.;
}
}