File: EdnaConfig.hpp

package info (click to toggle)
consensuscore 1.1.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,384 kB
  • sloc: cpp: 38,940; python: 2,083; ansic: 542; sh: 184; makefile: 82; cs: 10
file content (27 lines) | stat: -rw-r--r-- 792 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Author: David Alexander

#pragma once

#include <vector>

namespace ConsensusCore {
/// \brief A parameter vector for analysis using the QV model
struct EdnaModelParams
{
    std::vector<float> pStay_;
    std::vector<float> pMerge_;
    std::vector<float> moveDists_;
    std::vector<float> stayDists_;

    // By providing a single constructor with default arguments,
    // we allow Python and other SWIG client languages to use
    // named parameters. However if the user forgets to set one of
    // the parameters, trouble!

    EdnaModelParams(std::vector<float> pStay, std::vector<float> pMerge,
                    std::vector<float> moveDists, std::vector<float> stayDists)
        : pStay_(pStay), pMerge_(pMerge), moveDists_(moveDists), stayDists_(stayDists)
    {
    }
};
}