-
Notifications
You must be signed in to change notification settings - Fork 37
Add Bernoulli distribution #81
Copy link
Copy link
Open
Labels
Description
Hi all!
First of all thank you for creating the changepoint R package!
I think it would be useful to analyse changepoints in binary data. Is it possibile to support Bernoulli distribution?
Since both the mean and the variance of a bernoulli distribution depend on the probability of success p, I would say that this distribution will only be available for the cpt.meanvar() function.
Thank you!
y = c(rbinom(50,size=1,prob=0.2),rbinom(50,size=1,prob=0.8))
Reactions are currently unavailable