Skip to content

Commit

Permalink
Fixed num steps computation of model selection
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Jul 10, 2012
1 parent 731fafe commit 80adbb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shogun/modelselection/ModelSelectionParameters.h
Expand Up @@ -203,7 +203,7 @@ template <class T> SGVector<T> create_range_array(T min, T max,
SG_SERROR("unable build values: max=%f < min=%f\n", max, min);

/* create value vector, no ref-counting */
index_t num_values=CMath::round(max-min)/step+1;
index_t num_values=CMath::round((max-min)/step)+1;
SGVector<T> result(num_values, false);

/* fill array */
Expand Down

0 comments on commit 80adbb4

Please sign in to comment.