mirror of https://github.com/davisking/dlib.git
cleaned up the code
--HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402495
This commit is contained in:
parent
c3a9af0aee
commit
ea261db86c
|
@ -8,9 +8,10 @@
|
||||||
namespace dlib
|
namespace dlib
|
||||||
{
|
{
|
||||||
|
|
||||||
|
template <typename scalar_type>
|
||||||
void get_checkerboard_problem (
|
void get_checkerboard_problem (
|
||||||
std::vector<matrix<double,2,1> >& x,
|
std::vector<matrix<scalar_type,2,1> >& x,
|
||||||
std::vector<double>& y,
|
std::vector<scalar_type>& y,
|
||||||
const long num_samples,
|
const long num_samples,
|
||||||
const long board_dimension = 8
|
const long board_dimension = 8
|
||||||
)
|
)
|
||||||
|
@ -31,7 +32,7 @@ namespace dlib
|
||||||
x.clear();
|
x.clear();
|
||||||
y.clear();
|
y.clear();
|
||||||
|
|
||||||
matrix<double,2,1> sample;
|
matrix<scalar_type,2,1> sample;
|
||||||
for (long i = 0; i < num_samples; ++i)
|
for (long i = 0; i < num_samples; ++i)
|
||||||
{
|
{
|
||||||
sample(0) = rnd.get_random_double();
|
sample(0) = rnd.get_random_double();
|
||||||
|
|
Loading…
Reference in New Issue