Files
node_task_1c/public/frontend_js/calculation_sample.js
T

68 lines
1.7 KiB
JavaScript
Raw Normal View History

2022-10-03 19:59:51 +02:00
const accumlatedUniqueWeightsExample = {
Pollution: 50,
Sun: 48.39329657056177,
Temperature: null,
Hydration: 51.46427809019712,
Sensitivity: 100,
Breakouts: 49.433316280351,
Color: 66.6667,
Hyperpigmentation: 6.66667,
Redness: 99.9311321868482,
Lines: 23.869584038408604,
Age: 23.8695840384086,
Pores: 51.7000511589469,
Blackheads: 52.3296997363347,
Stress: 47.0406516862776,
Oxygenation: 100,
};
const sortedFinalActiveslistExample = [
"Chamomile",
"Bakuchiol",
"Gotu Kola",
"Dragon's Blood",
"Chia",
"Moringa",
"Sandalwood",
"Cucumber",
"Colloidal Oat",
"White Willow Bark",
"Ginseng",
"Olive Squalane",
"Acai",
"Coconut",
"Sake Extract",
"Tonka Bean",
"Licorice Root",
"Rose Hip",
"Okra Extract",
"Moth Bean",
"Yeast Extract (Collagen)",
"Cogon Grass",
];
const sortedFinalActiveslistWithScoresExample = [
["Chamomile", 35.006895600311815],
["Bakuchiol", 34.864335454841665],
["Gotu Kola", 34.59752576741149],
["Dragon's Blood", 34.26806861254431],
["Chia", 32.58056256473667],
["Moringa", 32.45812046796087],
["Sandalwood", 32.04473463715295],
["Cucumber", 31.836800387130516],
["Colloidal Oat", 30.050176997154054],
["White Willow Bark", 29.492484199162032],
["Ginseng", 29.43202696221447],
["Olive Squalane", 29.239855303321928],
["Acai", 29.075506820190608],
["Coconut", 28.861007423453366],
["Sake Extract", 27.361047426489453],
["Tonka Bean", 27.159613954853334],
["Licorice Root", 26.5144316605475],
["Rose Hip", 26.448523943345933],
["Okra Extract", 26.363374564468685],
["Moth Bean", 26.125180561661274],
["Yeast Extract (Collagen)", 24.58725443087142],
["Cogon Grass", 18.28511298894312],
];