Description Usage Arguments Value Author(s) Examples
Run the 2-opt algorithm to improve the optimal order searching of the Extended Nearest Insertion
1 |
Data |
gene-by-sample matrix or isoform-by-sample matrix. It should be rescaled to values bwteen [-1,1]. |
N,NCThre |
The 2-opt algorithm will stop if N iterations has been performed or if the optimal order remains unchanged for over NCThre iterations. |
Seq |
a vector indicates the sample order obtained from the ENI. |
Ndg |
degree of polynomial. |
NChun |
number of starting points for polynomial fitting. |
RdmStart |
whether the start points are randomly selected. |
This function performs the the 2-opt algorithm to improve the optimal order searching of the Extended Nearest Insertion (ENI). In each iteration, the function will randomly choose two points (samples), the flip the samples between these two points. The new order will be adapted if it provides smaller SPR MSE. The output returns the optimal order and its SPR MSE.
Ning Leng
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.