Near canonical position

Description

Given coordinates of a data point and canonical position grid, this function tells if the data point is close to at least one canonical positions on the BAF-LRR plot.

Usage

1
is.nearCP(seg.x, seg.y, gg, para)

Arguments

seg.x

x coordinate of the data point.

seg.y

y coordinate of the data point.

gg

canoincal position grid as returned from getGrid()

para

list, parameters returned from getPara()

Value

logical

Author(s)

Bo Li

Examples

1
2
3
4
5
x0=0.02
y0=0.1
p=0.8
gg=getGrid(x0,y0,p,para=getPara())
is.nearCP(0.42,0.1,gg,para=getPara())

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.