R/is.nearCP.R

Defines functions is.nearCP

Documented in is.nearCP

is.nearCP <- function(seg.x,seg.y,gg,para){
	# test if a segment is near to a canonical point
	Ng<-dim(gg)[1]
	for(i in 1:Ng){
		if(abs(seg.x-gg[i,1])<=para$std.BAF & abs(seg.y-gg[i,2])<=para$std.LRR){
			return(TRUE)
		}
	}
	return(FALSE)
}

Try the CHAT package in your browser

Any scripts or data that you put into this service are public.

CHAT documentation built on May 29, 2017, 10:32 p.m.