-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
70 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
real primarycensored_wrapper_lpmf(data int d, real mu, real sigma, data real pwindow) { | ||
int dist_id = 1; // lognormal | ||
// This function is a wrapper to primarycensored_lpmf | ||
// Here the strings | ||
// * family | ||
// * dpars_A | ||
// * dpars_1 | ||
// * dpars_2 | ||
// are/have been replaced using regex | ||
|
||
real marginal_family_lpmf(data int d, dpars_A, data real pwindow) { | ||
int dist_id = input_dist_id; | ||
array[2] real params; | ||
params[1] = mu; | ||
params[2] = sigma; | ||
params[1] = dpars_1; | ||
params[2] = dpars_2; | ||
int d_upper = d + 1; | ||
int primary_id = 1; // Uniform | ||
int primary_id = 1; // Fixed as uniform | ||
array[0] real primary_params; | ||
return primarycensored_lpmf(d | dist_id, params, pwindow, d_upper, positive_infinity(), primary_id, primary_params); | ||
} |