-
Notifications
You must be signed in to change notification settings - Fork 1
/
cim.h
30 lines (24 loc) · 867 Bytes
/
cim.h
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
28
29
30
#ifndef CIM_INCLUDED
#define CIM_INCLUDED
#include <vector>
#include "trajec.h"
namespace TrajectoryLikelihood {
using namespace std;
struct CumulativeIndelModel {
const IndelParams& params;
const double ri, rd, gi, gd;
vector<vector<double> > A; // Ai, Ad, Aid
double dt, tMax;
int verbose;
CumulativeIndelModel (const IndelParams&, double tMax, double dt, int verbose);
double Lit (double t) const;
double Pmt (double t) const;
double Pit (const vector<double>& A, double t) const;
double Pdt (const vector<double>& A, double t) const;
double Pidt (const vector<double>& A, double t) const;
double git (const vector<double>& A, double t) const;
double gdt (const vector<double>& A, double t) const;
vector<vector<double> > chopZoneLikelihoods (int maxLen) const;
};
}
#endif /* CIM_INCLUDED */