|
a |
|
b/src/likelihoods.h |
|
|
1 |
#ifndef OUTBREAKER2_LIKELIHOODS_H |
|
|
2 |
#define OUTBREAKER2_LIKELIHOODS_H |
|
|
3 |
|
|
|
4 |
#include <Rcpp.h> |
|
|
5 |
|
|
|
6 |
// Core likelihood functions |
|
|
7 |
|
|
|
8 |
// [[Rcpp::export(rng = false)]] |
|
|
9 |
double cpp_ll_genetic(Rcpp::List data, Rcpp::List param, SEXP i = R_NilValue, |
|
|
10 |
Rcpp::RObject custom_function = R_NilValue); |
|
|
11 |
|
|
|
12 |
double cpp_ll_genetic(Rcpp::List data, Rcpp::List param, size_t i, |
|
|
13 |
Rcpp::RObject custom_function = R_NilValue); |
|
|
14 |
|
|
|
15 |
|
|
|
16 |
|
|
|
17 |
|
|
|
18 |
|
|
|
19 |
|
|
|
20 |
// [[Rcpp::export(rng = false)]] |
|
|
21 |
double cpp_ll_timing_infections(Rcpp::List data, Rcpp::List param, SEXP i = R_NilValue, |
|
|
22 |
Rcpp::RObject custom_function = R_NilValue); |
|
|
23 |
|
|
|
24 |
double cpp_ll_timing_infections(Rcpp::List data, Rcpp::List param, size_t i, |
|
|
25 |
Rcpp::RObject custom_function = R_NilValue); |
|
|
26 |
|
|
|
27 |
|
|
|
28 |
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
|
|
|
32 |
// [[Rcpp::export(rng = false)]] |
|
|
33 |
double cpp_ll_timing_sampling(Rcpp::List data, Rcpp::List param, SEXP i = R_NilValue, |
|
|
34 |
Rcpp::RObject custom_function = R_NilValue); |
|
|
35 |
|
|
|
36 |
double cpp_ll_timing_sampling(Rcpp::List data, Rcpp::List param, size_t i, |
|
|
37 |
Rcpp::RObject custom_function = R_NilValue); |
|
|
38 |
|
|
|
39 |
|
|
|
40 |
|
|
|
41 |
|
|
|
42 |
|
|
|
43 |
|
|
|
44 |
// [[Rcpp::export(rng = false)]] |
|
|
45 |
double cpp_ll_reporting(Rcpp::List data, Rcpp::List param, SEXP i = R_NilValue, |
|
|
46 |
Rcpp::RObject custom_function = R_NilValue); |
|
|
47 |
|
|
|
48 |
double cpp_ll_reporting(Rcpp::List data, Rcpp::List param, size_t i, |
|
|
49 |
Rcpp::RObject custom_function = R_NilValue); |
|
|
50 |
|
|
|
51 |
|
|
|
52 |
|
|
|
53 |
|
|
|
54 |
|
|
|
55 |
|
|
|
56 |
// [[Rcpp::export(rng = false)]] |
|
|
57 |
double cpp_ll_contact(Rcpp::List data, Rcpp::List param, SEXP i = R_NilValue, |
|
|
58 |
Rcpp::RObject custom_function = R_NilValue); |
|
|
59 |
|
|
|
60 |
double cpp_ll_contact(Rcpp::List data, Rcpp::List param, size_t i, |
|
|
61 |
Rcpp::RObject custom_function = R_NilValue); |
|
|
62 |
|
|
|
63 |
|
|
|
64 |
|
|
|
65 |
|
|
|
66 |
// Aggregated functions, i.e. summing some of the above |
|
|
67 |
|
|
|
68 |
// [[Rcpp::export(rng = false)]] |
|
|
69 |
double cpp_ll_timing(Rcpp::List data, Rcpp::List param, SEXP i = R_NilValue, |
|
|
70 |
Rcpp::RObject custom_functions = R_NilValue); |
|
|
71 |
|
|
|
72 |
double cpp_ll_timing(Rcpp::List data, Rcpp::List param, size_t i, |
|
|
73 |
Rcpp::RObject custom_functions = R_NilValue); |
|
|
74 |
|
|
|
75 |
|
|
|
76 |
|
|
|
77 |
|
|
|
78 |
|
|
|
79 |
|
|
|
80 |
// [[Rcpp::export(rng = false)]] |
|
|
81 |
double cpp_ll_all(Rcpp::List data, Rcpp::List param, SEXP i = R_NilValue, |
|
|
82 |
Rcpp::RObject custom_functions = R_NilValue); |
|
|
83 |
|
|
|
84 |
double cpp_ll_all(Rcpp::List data, Rcpp::List param, size_t i, |
|
|
85 |
Rcpp::RObject custom_functions = R_NilValue); |
|
|
86 |
|
|
|
87 |
|
|
|
88 |
#endif |