void MainWindow::loadMotionProfile(std::vector<float> profile , double keySimplificationFactor , bool recomputeAverage , float ampFactor) { if (profile.empty()) { return; } //get duration and sample the space int duration = ui->sbDuration->value(); double sampling = (double) duration / (double) profile.size(); qDebug() << "duration : " << duration << ", nb keys : " << profile.size() << "time bw frames : " << sampling; ui->lblSplineInfo->setText("ctrl points : " + QString::number(profile.size())); //compute the main motion tendency float varianceCenter(0); if (recomputeAverage) { foreach (float f, profile) { varianceCenter += f; } varianceCenter /= profile.size(); } //save filter points QList<std::pair<ulong, float>> filterPoints; if (!spline->getSequences().isEmpty()) { foreach (auto p, spline->getSequences().first()->extraPointsList) filterPoints.append(p); }
correctDist::correctDist(string sequenceFileName, int p) : processors(p) { try { m = MothurOut::getInstance(); getSequences(sequenceFileName); } catch(exception& e) { m->errorOut(e, "correctDist", "correctDist"); exit(1); } }