noise tolerance for points with sAGP around 1. See getPara.sAGP() for details.
thr
numeric, see details.
is.scaling
logic. If TRUE, the function will rescale the BAF values so that it has the same dimension as LRR.
BAF.scale
numeric. If is.scaling is TRUE, this is the value to rescale BAF values.
Value
A list representing a canonical line and containing the following elements:
p.min
sAGP value of the nearest point (X) on L to the data point (A).
dist
distance from A to X.
x.min
x coordinate of X.
y.min
y coordinate of X.
Details
For a given data point A, and a canonical line L, this function first finds a point X on L that is closest to A, and designates the distance from A to X is the closest distance from A to L. This step is achieved by sequentially split the period of L and select the half that is closer to A. The argument thr is the sensitivity threshold to find X during this step.