Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
Correlation coefficient was in %, not as a fraction
  • Loading branch information
aromring committed Jan 22, 2018
1 parent 2ee57c7 commit 2df1d62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions algorithm_by_RF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ float rf_Pcorrelation(float *pn_x, float *pn_y, int32_t n_size)
for (i=0,x_ptr=pn_x,y_ptr=pn_y; i<n_size; ++i,++x_ptr,++y_ptr) {
r+=(*x_ptr)*(*y_ptr);
}
r/=n_size;
return r;
}

0 comments on commit 2df1d62

Please sign in to comment.