hildensia / bayesian_changepoint_detection

Methods to get the probability of a changepoint in a time series.
MIT License
670 stars 213 forks source link

Added rate parameter to hazard function call #28

Closed markatango closed 3 years ago

markatango commented 3 years ago

Call to hazard was missing rate param, lam

markatango commented 3 years ago

Noted with thanks. Right, i didn't consider other than the constant hazard function. I had extracted the block inside the for loop to incorporate in an actual online process to ingest data one sample at a time in real time. I'll look at making a hazard function factory that takes whatever params are needed for a given hazard function and returns a function with the right signature for partial et al.