Closed ivoflipse closed 11 years ago
The problem was:
force_over_time = np.zeros((len(self.forces), interpolate_length))
which is correct for as long as you fill up force_over_time with all elements in self.forces. If you start filtering them however... You end up with one or more zero-based time-series which throw off the calculations. So changing it to:
force_over_time = np.zeros((len(self.forces)-len(filtered), interpolate_length))
fixed the problem.
Without filtering:
With filtering:
![image](https://f.cloud.github.com/assets/485186/882008/1b479ab6-f95a-11e2-9dc7-533438828637.png)
For some reason the standard deviation goes completely nuts after I filter out contacts