This commit is contained in:
chaos 2024-11-09 13:20:04 +00:00
parent 97d1642ac3
commit 1ab3c852df
2 changed files with 1 additions and 3 deletions

View file

@ -13,10 +13,10 @@ def ingestionDose($customUnits):
.dose .dose
end; end;
# this probably isnt right
def addStandardDeviations($expectationX; $standardDeviationX; $expectationY; $standardDeviationY): def addStandardDeviations($expectationX; $standardDeviationX; $expectationY; $standardDeviationY):
(pow($standardDeviationX; 2) + pow($expectationX; 2)) as $sumX | (pow($standardDeviationX; 2) + pow($expectationX; 2)) as $sumX |
(pow($standardDeviationY; 2) + pow($expectationY; 2)) as $sumY | (pow($standardDeviationY; 2) + pow($expectationY; 2)) as $sumY |
(pow($expectationX; 2) * pow($expectationY; 2)) as $expectations | (pow($expectationX; 2) * pow($expectationY; 2)) as $expectations |
($sumX * $sumY - $expectations) as $productVariance | ($sumX * $sumY - $expectations) as $productVariance |
if $productVariance > 0.0000001 then if $productVariance > 0.0000001 then

View file

@ -63,8 +63,6 @@ def printExperienceStats($stats; $substanceFilter; $consumerFilter; $withTitle):
if $ingestionInfo.isUnknown then "+ Unknown" else "" end + if $ingestionInfo.isUnknown then "+ Unknown" else "" end +
" \($ingestionInfo.unit)" " \($ingestionInfo.unit)"
end; end;
$experienceStatsText | $experienceStatsText |