cleaned up the code

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402495
This commit is contained in:
Davis King 2008-08-22 18:51:39 +00:00
parent c3a9af0aee
commit ea261db86c
1 changed files with 4 additions and 3 deletions

View File

@ -8,9 +8,10 @@
namespace dlib
{
template <typename scalar_type>
void get_checkerboard_problem (
std::vector<matrix<double,2,1> >& x,
std::vector<double>& y,
std::vector<matrix<scalar_type,2,1> >& x,
std::vector<scalar_type>& y,
const long num_samples,
const long board_dimension = 8
)
@ -31,7 +32,7 @@ namespace dlib
x.clear();
y.clear();
matrix<double,2,1> sample;
matrix<scalar_type,2,1> sample;
for (long i = 0; i < num_samples; ++i)
{
sample(0) = rnd.get_random_double();