Commit d1457cd6 authored by Davis King's avatar Davis King

made the code a little more clear

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402317
parent 5051c25c
......@@ -214,12 +214,14 @@ namespace dlib
if (dictionary.size() >= my_max_dictionary_size)
{
// We need to remove one of the old members of the dictionary before
// we proceed with adding a new one. So remove the oldest one.
remove_dictionary_vector(0);
// we proceed with adding a new one. So remove the oldest dictionary vector.
const long idx_to_remove = 0;
remove_dictionary_vector(idx_to_remove);
// recompute these guys since they were computed with the old
// kernel matrix
k = remove_row(k,0);
k = remove_row(k,idx_to_remove);
a = K_inv*k;
delta = kx - trans(k)*a;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment