Skip to content

Commit

Permalink
nested template args
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasrausch committed Dec 10, 2020
1 parent cbc8849 commit 219b34e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/classify.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ classifyRun(TClassifyConfig const& c) {
{
std::vector<int32_t> cncount(MAX_CN, 0);
{
boost::accumulators::accumulator_set<double, boost::accumulators::features<boost::accumulators::tag::mean, boost::accumulators::tag::variance>> acc;
boost::accumulators::accumulator_set<double, boost::accumulators::features<boost::accumulators::tag::mean, boost::accumulators::tag::variance> > acc;
for(uint32_t k = 0; k < control.size(); ++k) acc(boost::math::round(control[k].first) - control[k].first);
double cnshift = boost::accumulators::mean(acc);
float cnshiftval = cnshift;
Expand All @@ -204,7 +204,7 @@ classifyRun(TClassifyConfig const& c) {
}

// Calculate SD
boost::accumulators::accumulator_set<double, boost::accumulators::features<boost::accumulators::tag::mean, boost::accumulators::tag::variance>> accLocal;
boost::accumulators::accumulator_set<double, boost::accumulators::features<boost::accumulators::tag::mean, boost::accumulators::tag::variance> > accLocal;
for (int i = 0; i < bcf_hdr_nsamples(hdr); ++i) {
if (cnval[i] == cnmain) accLocal(rdcn[i]);
}
Expand Down

0 comments on commit 219b34e

Please sign in to comment.