Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
371e3f39
Commit
371e3f39
authored
May 20, 2012
by
Davis King
Browse files
Simplified code slightly.
parent
d693e8f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/using_custom_kernels_ex.cpp
examples/using_custom_kernels_ex.cpp
+1
-1
No files found.
examples/using_custom_kernels_ex.cpp
View file @
371e3f39
...
...
@@ -152,7 +152,7 @@ int main()
samples
.
push_back
(
samp
);
// if this point is less than 13 from the origin
if
(
sqrt
(
(
double
)
r
*
r
+
c
*
c
)
<=
13
)
if
(
sqrt
(
r
*
r
+
c
*
c
)
<=
13
)
labels
.
push_back
(
+
1
);
else
labels
.
push_back
(
-
1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment