Description Usage Arguments Details Value Examples
Given a set of data points, return possible combinations of data points as corners. These combinations are selected by ranking the sum of margin-of-errors.
1 | cornerSort(X, K, nComb)
|
X |
Data in a matrix. Each column is a data point. |
K |
The number of corner points. |
nComb |
The number of returned combinations of data points as corners. All combinations will be returned if the number of all combinations is less than nComb. |
This function is to detect K corner points from M data
points by conducting an exhaustive combinatorial search (with total
C_M^K combinations), based on a convex-hull-to-data fitting criterion:
sum of margin-of-errors. nComb
combinations are returned for further
selection based on reconstruction errors of all data points in original
space.
The function is implemented in Java with R-to-Java interface provided by
rJava
package. It relies on NonNegativeLeastSquares class in Parallel
Java Library (https://www.cs.rit.edu/~ark/pj.shtml).
A list containing the following components:
idx |
A matrix to show the indexes of data points in combinations to construct a convex hull. Each column is one combination. |
error |
A vector of margin-of-error sums for each combination. |
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.