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
bfcae263
Commit
bfcae263
authored
Sep 22, 2013
by
Davis King
Browse files
clarified spec
parent
fcdd5aca
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
dlib/statistics/cca_abstract.h
dlib/statistics/cca_abstract.h
+6
-3
No files found.
dlib/statistics/cca_abstract.h
View file @
bfcae263
...
@@ -29,10 +29,13 @@ namespace dlib
...
@@ -29,10 +29,13 @@ namespace dlib
row vectors. In particular, we return a vector COR such that:
row vectors. In particular, we return a vector COR such that:
- COR.size() == L.nc()
- COR.size() == L.nc()
- for all valid i:
- for all valid i:
- COR(i) == the correlation coefficient between the following
- COR(i) == the correlation coefficient between the following
sequence
sequence
of paired numbers: (L(k,i), R(k,i)) for k: 0 <= k < L.nr().
of paired numbers: (L(k,i), R(k,i)) for k: 0 <= k < L.nr().
Therefore, COR(i) is a value between -1 and 1 inclusive where 1
Therefore, COR(i) is a value between -1 and 1 inclusive where 1
indicates perfect correlation and -1 perfect anti-correlation.
indicates perfect correlation and -1 perfect anti-correlation. Note
that this function assumes the input data vectors have been centered
(i.e. made to have zero mean). If this is not the case then it will
report inaccurate results.
!*/
!*/
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
...
...
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