Skip to content

Commit

Permalink
add offsets_prior to GPmodel (fixes #5)
Browse files Browse the repository at this point in the history
  • Loading branch information
j-faria committed Nov 21, 2023
1 parent 8d49300 commit ba3a8fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/kima/GPmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,10 @@ NB_MODULE(GPmodel, m) {
[](GPmodel &m) { return m.cubic_prior; },
[](GPmodel &m, distribution &d) { m.cubic_prior = d; },
"Prior for the cubic coefficient of the trend")
.def_prop_rw("offsets_prior",
[](GPmodel &m) { return m.offsets_prior; },
[](GPmodel &m, distribution &d) { m.offsets_prior = d; },
"Common prior for the between-instrument offsets")

// priors for the GP hyperparameters
.def_prop_rw("eta1_prior",
Expand Down

0 comments on commit ba3a8fd

Please sign in to comment.