MCPcopy Create free account
hub / github.com/davisking/dlib / get_simple_points

Function get_simple_points

dlib/test/svm_c_linear.cpp:111–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109 }
110
111 void get_simple_points (
112 std::vector<sample_type>& samples,
113 std::vector<double>& labels
114 )
115 {
116 samples.clear();
117 labels.clear();
118 sample_type samp(2);
119
120 samp = 0,0;
121 samples.push_back(samp);
122 labels.push_back(-1);
123
124 samp = 0,1;
125 samples.push_back(samp);
126 labels.push_back(-1);
127
128 samp = 3,0;
129 samples.push_back(samp);
130 labels.push_back(+1);
131
132 samp = 3,1;
133 samples.push_back(samp);
134 labels.push_back(+1);
135 }
136
137// ----------------------------------------------------------------------------------------
138

Callers 1

test_denseFunction · 0.85

Calls 2

clearMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected