Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
00238cfe
Commit
00238cfe
authored
May 20, 2010
by
Tiago Peixoto
Browse files
Fix standard deviation calculation in average correlation code
parent
07f568f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph/correlations/graph_correlations.hh
View file @
00238cfe
...
...
@@ -330,8 +330,9 @@ struct get_avg_correlation
{
sum
.
GetArray
()[
i
]
/=
count
.
GetArray
()[
i
];
sum2
.
GetArray
()[
i
]
=
sqrt
(
sum2
.
GetArray
()[
i
]
/
count
.
GetArray
()[
i
]
-
sum
.
GetArray
()[
i
])
/
sqrt
(
count
.
GetArray
()[
i
]);
sqrt
(
abs
(
sum2
.
GetArray
()[
i
]
/
count
.
GetArray
()[
i
]
-
sum
.
GetArray
()[
i
]
*
sum
.
GetArray
()[
i
]))
/
sqrt
(
count
.
GetArray
()[
i
]);
}
bins
=
sum
.
GetBins
();
...
...
Write
Preview
Supports
Markdown
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