Commit ab8bfefa authored by Davis King's avatar Davis King

Renamed rand::float_1a to rand.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404251
parent 7cb946de
...@@ -239,7 +239,7 @@ void generate_data ( ...@@ -239,7 +239,7 @@ void generate_data (
sample_type m; sample_type m;
dlib::rand::float_1a rnd; dlib::rand rnd;
// add some points in the upper right quadrant // add some points in the upper right quadrant
......
...@@ -320,7 +320,7 @@ void generate_concentric_circles ( ...@@ -320,7 +320,7 @@ void generate_concentric_circles (
samples.clear(); samples.clear();
labels.clear(); labels.clear();
dlib::rand::float_1a rnd; dlib::rand rnd;
// make some samples near the origin // make some samples near the origin
double radius = 1.0; double radius = 1.0;
......
...@@ -61,7 +61,7 @@ int main() ...@@ -61,7 +61,7 @@ int main()
sample_type m; sample_type m;
dlib::rand::float_1a rnd; dlib::rand rnd;
// we will make 50 points from each class // we will make 50 points from each class
const long num = 50; const long num = 50;
......
...@@ -61,7 +61,7 @@ int main() ...@@ -61,7 +61,7 @@ int main()
// faster filtering and won't introduce much error. // faster filtering and won't introduce much error.
krls<kernel_type> test(kernel_type(0.05),0.001,7); krls<kernel_type> test(kernel_type(0.05),0.001,7);
dlib::rand::float_1a rnd; dlib::rand rnd;
// Now lets loop over a big range of values from the sinc() function. Each time // Now lets loop over a big range of values from the sinc() function. Each time
// adding some random noise to the data we send to the krls object for training. // adding some random noise to the data we send to the krls object for training.
......
...@@ -258,7 +258,7 @@ void test_manifold_regularization ( ...@@ -258,7 +258,7 @@ void test_manifold_regularization (
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
dlib::rand::float_1a rnd; dlib::rand rnd;
void generate_circle ( void generate_circle (
std::vector<sample_type>& samples, std::vector<sample_type>& samples,
......
...@@ -165,7 +165,7 @@ void generate_data ( ...@@ -165,7 +165,7 @@ void generate_data (
sample_type m; sample_type m;
dlib::rand::float_1a rnd; dlib::rand rnd;
// make some samples near the origin // make some samples near the origin
......
...@@ -32,7 +32,7 @@ using namespace dlib; ...@@ -32,7 +32,7 @@ using namespace dlib;
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
// This declares a random number generator that we will be using below // This declares a random number generator that we will be using below
dlib::rand::float_1a rnd; dlib::rand rnd;
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
......
...@@ -40,7 +40,7 @@ int main() ...@@ -40,7 +40,7 @@ int main()
std::vector<sample_type> samples; std::vector<sample_type> samples;
std::vector<double> labels; std::vector<double> labels;
dlib::rand::float_1a rnd; dlib::rand rnd;
for (int x = -30; x <= 30; ++x) for (int x = -30; x <= 30; ++x)
{ {
......
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