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
02b63287
Commit
02b63287
authored
Nov 03, 2011
by
Davis King
Browse files
Made unit test a little more robust.
parent
f57595fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dlib/test/least_squares.cpp
dlib/test/least_squares.cpp
+2
-2
No files found.
dlib/test/least_squares.cpp
View file @
02b63287
...
@@ -238,7 +238,7 @@ namespace
...
@@ -238,7 +238,7 @@ namespace
ch
=
brown_start
();
ch
=
brown_start
();
solve_least_squares
(
objective_delta_stop_strategy
(
1e-13
,
8
0
),
solve_least_squares
(
objective_delta_stop_strategy
(
1e-13
,
30
0
),
&
brown_residual
,
&
brown_residual
,
derivative
(
&
brown_residual
),
derivative
(
&
brown_residual
),
range
(
1
,
20
),
range
(
1
,
20
),
...
@@ -248,7 +248,7 @@ namespace
...
@@ -248,7 +248,7 @@ namespace
dlog
<<
LINFO
<<
"brown der: "
<<
length
(
brown_derivative
(
ch
));
dlog
<<
LINFO
<<
"brown der: "
<<
length
(
brown_derivative
(
ch
));
dlog
<<
LINFO
<<
"brown error: "
<<
length
(
ch
-
brown_solution
());
dlog
<<
LINFO
<<
"brown error: "
<<
length
(
ch
-
brown_solution
());
DLIB_TEST
(
length
(
ch
-
brown_solution
())
<
1e-5
);
DLIB_TEST
_MSG
(
length
(
ch
-
brown_solution
())
<
1e-5
,
length
(
ch
-
brown_solution
())
);
}
}
print_spinner
();
print_spinner
();
...
...
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