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
6bf4a648
Commit
6bf4a648
authored
Oct 22, 2012
by
Davis King
Browse files
Minor cleanup
parent
cbbd8447
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
examples/bsp_ex.cpp
examples/bsp_ex.cpp
+2
-2
No files found.
examples/bsp_ex.cpp
View file @
6bf4a648
...
...
@@ -24,7 +24,7 @@ using namespace dlib;
// ----------------------------------------------------------------------------------------
double
f
(
double
x
)
double
f
(
double
x
)
{
return
std
::
pow
(
x
-
2.0
,
2.0
);
}
...
...
@@ -83,7 +83,7 @@ void bsp_job_other_nodes (
const
double
width
=
right
-
left
;
const
matrix
<
double
>
values_to_check
=
linspace
(
left
+
l
*
width
,
left
+
r
*
width
,
grid_resolution
);
double
best_x
;
double
best_x
=
0
;
double
best_val
=
std
::
numeric_limits
<
double
>::
infinity
();
for
(
long
j
=
0
;
j
<
values_to_check
.
size
();
++
j
)
{
...
...
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