intersect8interv: computes the interval intersection of two intervals

Description Usage Arguments Value Examples

View source: R/rbsa3.code.r

Description

computes and returns the interval (vector of length 2 or 0) which is the intersection of two given intervals.
Null intervals are indicated by numeric(0).

Usage

1
2
 
  intersect8interv(int1,int2,monitor=rbsa0$monitor$v) 

Arguments

int1

The first interval (numeric(2) or numeric(0)).

int2

The second interval (numeric(2) or numeric(0)).

monitor

List providing the monitoring constants, see rbsa0$monitor$v to know the contents.

Value

A numeric(2) or numeric(0) providing the intersection of the two intervals.

Examples

1
2
3
4
5
6
 
  intersect8interv(numeric(0),1:2); 
  intersect8interv(c(1,10),c(-3,5)); 
  intersect8interv(c(1,10),c(10,12)); 
  intersect8interv(c(1,10),c(11,12)); 
  intersect8interv(c(1,10),c(pi,10*pi)) 

rbsa documentation built on May 31, 2017, 4:29 a.m.