-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
356 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
let motionsplan = {}; | ||
|
||
motionsplan.Cooper12Min = function() { | ||
|
||
// distance in meters | ||
function getVO2Max(distance, formula = "wikipedia") { | ||
if (formula == "cooper") { | ||
return getCooper(distance); | ||
} else if (formula == "bandyopadhyay") { | ||
return getBandyopadhyay(distance); | ||
} | ||
|
||
return getWikipedia(distance); | ||
} | ||
|
||
function getWikipedia(distance) { | ||
return (distance - 504.9) / 44.73; | ||
} | ||
|
||
// Cooper original formula - see Alvarez-Ramirez | ||
// Distance in km | ||
function getCooper(distance) { | ||
// Range? 1,6 - 3,4 km | ||
return -11.288 + 22.351 * distance / 1000; | ||
} | ||
|
||
// see Alvarez-Ramirez | ||
function getBandyopadhyay(distance) { | ||
// Range? 2 - 2,9 km | ||
return -11.04 + 21.01 * distance / 1000; | ||
} | ||
|
||
function getDistanceFromVO2Max(vo2max) { | ||
return (vo2max * 44.73) + 504.9; | ||
} | ||
|
||
let publicAPI = { | ||
getVO2Max: getVO2Max, | ||
getDistanceFromVO2Max : getDistanceFromVO2Max | ||
}; | ||
|
||
return publicAPI; | ||
}; | ||
|
||
module.exports = motionsplan; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
let motionsplan = {}; | ||
|
||
motionsplan.Cooper2400Meter = function() { | ||
|
||
// TODO - see this also... https://pubmed.ncbi.nlm.nih.gov/11926486/ | ||
function getVO2Max(min, sek, formula = "cooper") { | ||
if (formula == "burger") { | ||
return getBurger(min, sek); | ||
} | ||
return getCooper(min, sek); | ||
} | ||
|
||
function getCooper(min, sek) { | ||
let time = min + (sek / 60); | ||
return (483 / time) + 3.5; | ||
} | ||
|
||
// https://www.brianmac.co.uk/24kmruntest.htm | ||
// https://pubmed.ncbi.nlm.nih.gov/2396155/ | ||
function getBurger(min, sek) { | ||
let time = min + (sek / 60); | ||
return 85.95 - (3.079 * time); | ||
} | ||
|
||
let publicAPI = { | ||
getVO2Max: getVO2Max, | ||
}; | ||
|
||
return publicAPI; | ||
}; | ||
|
||
module.exports = motionsplan; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
let motionsplan = {} | ||
|
||
// TODO - NY GANGTE>ST _ https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8434117/ | ||
// TODO - NY GANGTEST - https://pubmed.ncbi.nlm.nih.gov/22821953/ | ||
// 3K-test -- https://pubmed.ncbi.nlm.nih.gov/33092333/ | ||
// VO2max -- running paces -- ? | ||
|
||
// app -- https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9389381/ | ||
|
||
motionsplan.Fitness3MT = function(CS) { | ||
// CS critical speed - average speed in last 30 seconds of the test | ||
|
||
function getMaximalOxygenUptake() { | ||
return getFitnessLevel() * wgt / 1000; | ||
} | ||
|
||
function getFitnessLevel() { | ||
// gender = (F = 0, M = 1) | ||
return 8.449 * CS + 4.387 * gender + 14.683; | ||
} | ||
|
||
// https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7760774/ | ||
// not to be used. no significant | ||
function getD() { | ||
let t = 150; | ||
// average_speeds in m/s | ||
return t * (average_speed_0_150_seconds - average_speed_150_180_seconds); | ||
} | ||
|
||
let publicAPI = { | ||
getMaximalOxygenUptake: getMaximalOxygenUptake, | ||
getFitnessLevel: getFitnessLevel | ||
}; | ||
|
||
return publicAPI; | ||
} | ||
|
||
module.exports = motionsplan; |
Oops, something went wrong.