Skip to content

Commit

Permalink
Fix Replay mean, absmean, and sd
Browse files Browse the repository at this point in the history
The way we fix things around here is with duct tape, not logic
  • Loading branch information
poco0317 committed Oct 16, 2019
1 parent 747aeb8 commit 49b18b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Themes/_fallback/Scripts/10 WifeSundries.lua
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function wifeMean(t)
end
local o = 0
for i = 1, c do
if t[i] ~= 1000 then
if t[i] ~= 1000 and t[i] ~= -1100 then
o = o + t[i]
else
m = m + 1
Expand All @@ -137,7 +137,7 @@ function wifeAbsMean(t)
end
local o = 0
for i = 1, c do
if t[i] ~= 1000 then
if t[i] ~= 1000 and t[i] ~= -1100 then
o = o + math.abs(t[i])
else
m = m + 1
Expand All @@ -151,7 +151,7 @@ function wifeSd(t)
local u2 = 0
local m = 0
for i = 1, #t do
if t[i] ~= 1000 then
if t[i] ~= 1000 and t[i] ~= -1100 then
u2 = u2 + (t[i] - u) ^ 2
else
m = m + 1
Expand Down

0 comments on commit 49b18b3

Please sign in to comment.