Description Usage Arguments Value Examples

View source: R/means.between.cpt.R

The function finds the average of the input vector `x`

between change-points given in `cpt`

.

1 | ```
means.between.cpt(x, cpt = NULL, ...)
``` |

`x` |
a vector |

`cpt` |
a vector of integers with localisations of change-points |

`...` |
further arguments passed to |

a vector of the same length as `x`

, piecewise constant and equal to the mean between change-points given in `cpt`

1 2 3 4 5 6 | ```
x <- rnorm(100)+c(rep(-1,50),rep(1,50))
cpt <- 50
means.between.cpt(x,cpt)
w <- wbs(x)
cpt <- changepoints(w)
means.between.cpt(x,cpt=cpt$cpt.ic$sbic)
``` |

wbs documentation built on May 30, 2017, 3:56 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.