Skip to content

Commit

Permalink
kmeans.c: bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
vedaldi committed Jul 23, 2013
1 parent 584a192 commit 7caa97d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docsrc/install-octave.html
Expand Up @@ -26,7 +26,7 @@

<p>After the MEX files are successfully compiled (look for them
into <code>toolbox/mex/octave/</code>), you can start using VLFeat in
Octave in the <a href="%pathto:matlab-install;"> same way as
Octave in the <a href="%pathto:install.matlab;">same way as
MATLAB</a>. Do not forget to use the <code>vl_setup</code> command to
initalize the paths:</p>

Expand Down
2 changes: 1 addition & 1 deletion vl/kmeans.c
Expand Up @@ -750,7 +750,7 @@ VL_XCAT(_vl_kmeans_quantize_ann_, SFX)
vl_kdforestsearcher_query (searcher, &neighbor, 1, (TYPE const *) (data + x*self->dimension));

if (distances) {
if(update) {
if(!update) {
distances[x] = (TYPE) neighbor.distance;
assignments[x] = (vl_uint32) neighbor.index ;
} else {
Expand Down

0 comments on commit 7caa97d

Please sign in to comment.