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
a9eba8c4
Commit
a9eba8c4
authored
Aug 26, 2012
by
Davis King
Browse files
made code a little clearer
parent
9e2423b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
dlib/statistics/sammon.h
dlib/statistics/sammon.h
+3
-3
dlib/statistics/sammon_abstract.h
dlib/statistics/sammon_abstract.h
+3
-3
No files found.
dlib/statistics/sammon.h
View file @
a9eba8c4
...
@@ -22,7 +22,7 @@ namespace dlib
...
@@ -22,7 +22,7 @@ namespace dlib
template
<
typename
matrix_type
>
template
<
typename
matrix_type
>
std
::
vector
<
matrix
<
double
,
0
,
1
>
>
operator
()
(
std
::
vector
<
matrix
<
double
,
0
,
1
>
>
operator
()
(
const
std
::
vector
<
matrix_type
>&
data
,
const
std
::
vector
<
matrix_type
>&
data
,
long
num_dims
const
long
num_dims
)
)
{
{
// make sure requires clause is not broken
// make sure requires clause is not broken
...
@@ -67,10 +67,10 @@ namespace dlib
...
@@ -67,10 +67,10 @@ namespace dlib
template
<
typename
matrix_type
>
template
<
typename
matrix_type
>
void
operator
()
(
void
operator
()
(
const
std
::
vector
<
matrix_type
>&
data
,
const
std
::
vector
<
matrix_type
>&
data
,
long
num_dims
,
const
long
num_dims
,
std
::
vector
<
matrix
<
double
,
0
,
1
>
>&
result
,
std
::
vector
<
matrix
<
double
,
0
,
1
>
>&
result
,
double
&
err
,
double
&
err
,
unsigned
long
num_iters
=
1000
,
const
unsigned
long
num_iters
=
1000
,
const
double
err_delta
=
1.0e-9
const
double
err_delta
=
1.0e-9
)
)
{
{
...
...
dlib/statistics/sammon_abstract.h
View file @
a9eba8c4
...
@@ -33,7 +33,7 @@ namespace dlib
...
@@ -33,7 +33,7 @@ namespace dlib
template
<
typename
matrix_type
>
template
<
typename
matrix_type
>
std
::
vector
<
matrix
<
double
,
0
,
1
>
>
operator
()
(
std
::
vector
<
matrix
<
double
,
0
,
1
>
>
operator
()
(
const
std
::
vector
<
matrix_type
>&
data
,
const
std
::
vector
<
matrix_type
>&
data
,
long
num_dims
const
long
num_dims
);
);
/*!
/*!
requires
requires
...
@@ -65,10 +65,10 @@ namespace dlib
...
@@ -65,10 +65,10 @@ namespace dlib
template
<
typename
matrix_type
>
template
<
typename
matrix_type
>
void
operator
()
(
void
operator
()
(
const
std
::
vector
<
matrix_type
>&
data
,
const
std
::
vector
<
matrix_type
>&
data
,
long
num_dims
,
const
long
num_dims
,
std
::
vector
<
matrix
<
double
,
0
,
1
>
>&
result
,
std
::
vector
<
matrix
<
double
,
0
,
1
>
>&
result
,
double
&
err
,
double
&
err
,
unsigned
long
num_iters
=
1000
,
const
unsigned
long
num_iters
=
1000
,
const
double
err_delta
=
1.0e-9
const
double
err_delta
=
1.0e-9
);
);
/*!
/*!
...
...
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