summaryrefslogtreecommitdiff
path: root/grapher/Models/Calculations
diff options
context:
space:
mode:
authora1xd <[email protected]>2020-12-03 20:01:49 -0500
committera1xd <[email protected]>2020-12-03 20:01:49 -0500
commitc5c3c2a8a841d664a422380ab31497b3f741f07f (patch)
tree2418351be8e791e06b781b6426da581332538712 /grapher/Models/Calculations
parentadd directional multipliers (diff)
downloadrawaccel-c5c3c2a8a841d664a422380ab31497b3f741f07f.tar.xz
rawaccel-c5c3c2a8a841d664a422380ab31497b3f741f07f.zip
filter out abs move raw input
Diffstat (limited to 'grapher/Models/Calculations')
-rw-r--r--grapher/Models/Calculations/AccelChartData.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/grapher/Models/Calculations/AccelChartData.cs b/grapher/Models/Calculations/AccelChartData.cs
index 60d4c89..48374c1 100644
--- a/grapher/Models/Calculations/AccelChartData.cs
+++ b/grapher/Models/Calculations/AccelChartData.cs
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
+using System.Diagnostics;
using System.Linq;
namespace grapher.Models.Calculations
@@ -80,6 +81,8 @@ namespace grapher.Models.Calculations
public int GetVelocityIndex(double outVelocityValue)
{
+ Debug.Assert(outVelocityValue >= 0);
+
var log = Math.Log10(outVelocityValue);
if (log < -2)
{