Commit 4c93d676 authored by Davis King's avatar Davis King

Added more comments

parent c2196598
......@@ -137,11 +137,14 @@ namespace dlib
// Don't bother with the filter until we have seen two samples
if (count >= 2)
{
// predict next state
for (long i = 0; i < z.size(); ++i)
next(i) = filter(vector_to_matrix(data[i]));
}
else
{
// Use current measurement as the next state prediction
// since we don't know any better at this point.
++count;
next = matrix_cast<double>(z);
}
......
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