View source: R/find_furthestsum_points.R
find_furthestsum_points | R Documentation |
Function which finds the furthest sum points in order to be used as initial solution in archetypal analysis.
find_furthestsum_points(df, kappas, nfurthest = 100, nworkers = NULL,
sortrows = TRUE, doparallel = TRUE)
df |
The data frame with dimensions n x d |
kappas |
The number of archetypes |
nfurthest |
The number of applications for FurthestSum algorithm |
nworkers |
The number of logical processors that will be used.
Hint: set it such that |
sortrows |
If it is TRUE, then rows will be sorted |
doparallel |
If it is set to TRUE, then parallel processing will be performed
for the |
A list with members:
outmost, the first kappas furthest sum points as rows of data frame
outmostall, all the furthest sum points that have been found as rows of data frame
outmostfrequency, a matrix with frequency and cumulative frequency for furthest sum rows
FurthestSum
data("wd3") #3D demo
df = wd3
yy = find_furthestsum_points(df, kappas = 4, nfurthest = 10, nworkers = 2)
yy$outmost
yy$outmostall
yy$outmostfrequency
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.