Learn R Programming

MultiCNVDetect (version 0.1-1)

calculate_direction: Calculate direction in each iterative step in BCGD algorithm

Description

In BCGD algorithm,we should calculate the direction d in each iterative step.According to the multiple copy number variation detection problem,we solve it using chasing method.

Usage

calculate_direction(Y, X, lambda1, lambda2)

Arguments

Y
A n*m matrix.
X
A n*m matrix,should be the same size of Y.
lambda1
A real number larger than 0,the first penalty used in the model,controls the overall copy number alteration amount of the target chromosome.
lambda2
A real number larger than 0,the second penalty used in the model,controls the frequency of the alterations in the target region.

Value

It returns a n*m matrix.