Commit 5826b562 authored by Davis King's avatar Davis King

Fixed grammar in comments.

parent f4eab393
// The contents of this file are in the public domain. See LICENSE_FOR_EXAMPLE_PROGRAMS.txt // The contents of this file are in the public domain. See LICENSE_FOR_EXAMPLE_PROGRAMS.txt
/* /*
This is an example showing how to defined custom kernel functions for use with This is an example showing how to define custom kernel functions for use with
the machine learning tools in the dlib C++ Library. the machine learning tools in the dlib C++ Library.
This example assumes you are somewhat familiar with the machine learning This example assumes you are somewhat familiar with the machine learning
...@@ -80,7 +80,7 @@ struct ukf_kernel ...@@ -80,7 +80,7 @@ struct ukf_kernel
/* /*
Here we define serialize() and deserialize() functions for our new kernel. Defining Here we define serialize() and deserialize() functions for our new kernel. Defining
these function is optional. However, if you don't define them you won't be able these functions is optional. However, if you don't define them you won't be able
to save your learned decision_function objects to disk. to save your learned decision_function objects to disk.
*/ */
...@@ -200,7 +200,7 @@ int main() ...@@ -200,7 +200,7 @@ int main()
// the results are similar. If they are very different then you probably made a // the results are similar. If they are very different then you probably made a
// mistake. So here we compare the results at a test point. // mistake. So here we compare the results at a test point.
cout << "\nThese vectors should match, if they don't then we coded the kernel_derivative wrong!" << endl; cout << "\nThese vectors should match, if they don't then we coded the kernel_derivative wrong!" << endl;
cout << "approximate derivative: \n" << derivative(kern)(samples[0],samples[100]) << endl; cout << "approximate derivative: \n" << derivative(kern)(samples[0],samples[100]) << endl;
cout << "exact derivative: \n" << kernel_derivative<kernel_type>(kern)(samples[0],samples[100]) << endl; cout << "exact derivative: \n" << kernel_derivative<kernel_type>(kern)(samples[0],samples[100]) << endl;
} }
......
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