Description Usage Arguments Details Value Examples

Finds the intersection between two unions of intervals.

1 | ```
interval_intersection(A, B)
``` |

`A` |
A list of vectors of size 2, each representing an interval. It is required that |

`B` |
A list of vectors of size 2, each representing an interval. It is required that |

Finds the intersection between the union of all intervals in `A`

and the union of all intervals in `B`

.

A list of vectors of size 2, whose union represents the intersection between `A`

and `B`

.

1 2 3 4 5 6 7 8 9 10 11 | ```
interval_intersection(list(c(1.2,1.5), c(2.3,2.7)),
list(c(0.6,1.4), c(2.5,3.6), c(6.3,6.9)))
interval_intersection(list(c(-0.3,0.55), c(2.35,2.8)),
list(c(0.54,0.62), c(2.5,2.9)))
interval_intersection(list(c(0,1)), list(c(1,2)))
interval_intersection(list(c(0,1+1e-8)), list(c(1,2)))
interval_intersection(list(c(0,1), c(2,3)),
list(c(1,2)))
interval_intersection(list(c(0,1+1e-8), c(2-1e-8,3)),
list(c(1,2)))
interval_intersection(list(c(0,1)), list())
``` |

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.