View source: R/Finalised_coding.R
| log_lik_slope | R Documentation |
This function calculates the Gaussian log-likelihood for the continuous piecewise-linear
mean signal estimated using est_signal with the changepoints at cpt and
for type = ``slope''.
log_lik_slope(x, cpt)
x |
A numeric vector containing the data. |
cpt |
A positive integer vector with the locations of the change-points.
If missing, the |
The Gaussian log-likelihood for the continuous piecewise-linear mean signal
estimated using est_signal with the changepoints at cpt.
Andreas Anastasiou, anastasiou.andreas@ucy.ac.cy
single.cpt.plm <- c(seq(0, 999, 1), seq(998.5, 499, -0.5))
single.cpt.plm.noise <- single.cpt.plm + rnorm(2000)
cpt_detect <- ID(single.cpt.plm.noise, contrast = "slope")
loglik_cpt <- IDetect:::log_lik_slope(single.cpt.plm.noise, cpt_detect$cpt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.