Skip to content

Commit

Permalink
Fixed GaussianAverage. Was considering an 0 value
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanseidel committed Jul 15, 2015
1 parent 854a408 commit ce1143f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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 = Gaussian();
for(int i = 0; i < gaussians->size(); i++){
Gaussian tmp = gaussians->get(i);
avg = gaussians->get(0, true);
for(int i = 1; i < gaussians->size(); i++){
Gaussian tmp = gaussians->get(i, true);

// This will enable quadratic importance for newer samples
// tmp.variance = tmp.variance / (i+1.0);
Expand Down

0 comments on commit ce1143f

Please sign in to comment.