Skip to content
Snippets Groups Projects
Commit b61960b4 authored by Jordi Inglada's avatar Jordi Inglada
Browse files

ENH: pass vector as const&

parent 79ce383f
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ using SampleVectorType = std::vector<SampleType>;
Estimate standard deviations of the components in one pass using
Welford's algorithm
*/
SampleType estimateStds(SampleVectorType samples)
SampleType estimateStds(const SampleVectorType& samples)
{
const auto nbSamples = samples.size();
const auto nbComponents = samples[0].size();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment