Description Usage Arguments Value Author(s) References Examples

View source: R/Finalised_coding.R

This function finds two subsets of integers in a given interval `[s,e]`

.
The routine is typically not called directly by the user; its result
is used in order to construct the expanding intervals, where the Isolate-Detect method
is going to be applied. For more details on how the Isolate-Detect methodology works, see
References.

1 | ```
s_e_points(r, l, s, e)
``` |

`r` |
A positive integer vector containing the set, from which the end-points of the expanding intervals are to be chosen. |

`l` |
A positive integer vector containing the set, from which the start-points of the expanding intervals are to be chosen. |

`s` |
A positive integer indicating the starting position, in the sense that we will
choose the elements from |

`e` |
A positive integer indicating the finishing position, in the sense that we will
choose the elements from |

`e_points`

A vector containing the points that will be used as end-points,
in order to create the left-expanding intervals. It consists of the input `e`

and
all the elements in the input vector `r`

that are in `(s,e)`

.

`s_points`

A vector containing the points that will be used as start-points,
in order to create the left-expanding intervals. It consists of the input `s`

and
all the elements in the input vector `l`

that are in `(s,e)`

Andreas Anastasiou, a.anastasiou@lse.ac.uk

Anastasiou, A. and Fryzlewicz, P. (2018). Detecting multiple generalized change-points by isolating single ones.

1 2 | ```
s_e_points(r = seq(10,1000,10), l = seq(991,1,-10), s=435, e = 786)
s_e_points(r = seq(3,100,3), l = seq(98,1,-3), s=43, e = 86)
``` |

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.