is.nearCP: Near canonical position

Description Usage Arguments Value Author(s) Examples

View source: R/is.nearCP.R

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())

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

Search within the CHAT package
Search all R packages, documentation and source code