Learn R Programming

CHAT (version 1.1)

is.nearCP: 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

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

Examples

Run this code
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())

Run the code above in your browser using DataLab