update
This commit is contained in:
parent
97d1642ac3
commit
1ab3c852df
|
@ -13,10 +13,10 @@ def ingestionDose($customUnits):
|
|||
.dose
|
||||
end;
|
||||
|
||||
# this probably isnt right
|
||||
def addStandardDeviations($expectationX; $standardDeviationX; $expectationY; $standardDeviationY):
|
||||
(pow($standardDeviationX; 2) + pow($expectationX; 2)) as $sumX |
|
||||
(pow($standardDeviationY; 2) + pow($expectationY; 2)) as $sumY |
|
||||
|
||||
(pow($expectationX; 2) * pow($expectationY; 2)) as $expectations |
|
||||
($sumX * $sumY - $expectations) as $productVariance |
|
||||
if $productVariance > 0.0000001 then
|
||||
|
|
|
@ -63,8 +63,6 @@ def printExperienceStats($stats; $substanceFilter; $consumerFilter; $withTitle):
|
|||
|
||||
if $ingestionInfo.isUnknown then "+ Unknown" else "" end +
|
||||
" \($ingestionInfo.unit)"
|
||||
|
||||
|
||||
end;
|
||||
|
||||
$experienceStatsText |
|
||||
|
|
Loading…
Reference in a new issue