altoslib: Typo slipped into AltosState.java
authorKeith Packard <keithp@keithp.com>
Wed, 24 Jun 2015 04:47:06 +0000 (21:47 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 24 Jun 2015 04:47:06 +0000 (21:47 -0700)
Oops.

Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosState.java

index 8eacf97..347c119 100644 (file)
@@ -66,7 +66,7 @@ public class AltosState implements Cloneable, Serializable {
 
                void set_filtered(double new_value, double time) {
                        if (prev_value != AltosLib.MISSING) {
-                               double f = 1/Math.exp((time - prev_set_time) / filter_le);
+                               double f = 1/Math.exp((time - prev_set_time) / filter_len);
                                new_value = f * new_value + (1-f) * prev_value;
                        }
                        set(new_value, time);