Skip to content

Commit

Permalink
Fixed compatibility with LinkedList
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanseidel committed Oct 15, 2015
1 parent a9285ae commit f30d19e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
4 changes: 2 additions & 2 deletions GaussianAverage.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ class GaussianAverage: public Gaussian
// Checks if the process is already cached
if(!isCached){

avg = gaussians->get(0, true);
avg = gaussians->get(0);
for(int i = 1; i < gaussians->size(); i++){
Gaussian tmp = gaussians->get(i, true);
Gaussian tmp = gaussians->get(i);

// This will enable quadratic importance for newer samples
// tmp.variance = tmp.variance / (i+1.0);
Expand Down
9 changes: 1 addition & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,4 @@ mySavedAverage = myAverage;

- **proteced** `Gaussian` `avg` - Only a temporary helper used by process().

----------------------------


### Version History

* `1.0 (2013-07-20)`: Original release

![Gaussian](https://d2weczhvl823v0.cloudfront.net/ivanseidel/Gaussian/trend.png)
----------------------------
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Gaussian
version=1.0.6
version=1.0.7
author=Ivan Seidel <ivanseidel@gmail.com>
maintainer=Ivan Seidel <ivanseidel@gmail.com>
sentence=Gaussian math, Kalman Filters and Moving Averages made easy
Expand Down

1 comment on commit f30d19e

@ivanseidel
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixes #3

Please sign in to comment.