mahalconf | R Documentation |
Generates an initial configuration of startn
points from
dataset x
for the fixmahal
fixed point iteration.
Thought only for use within fixmahal
.
mahalconf(x, no, startn, covall, plot)
x |
numerical matrix. Rows are points, columns are variables. |
no |
integer between 1 and |
startn |
integer between 1 and |
covall |
covariance matrix for the computation of the first Mahalanobis distances. |
plot |
a string. If equal to |
mahalconf
first chooses the p
(number of variables)
nearest points to point no. no
in terms of the Mahalanobis
distance w.r.t. covall
, so that there are p+1
points.
In every further step, the covariance
matrix of the current configuration is computed and the nearest point
in terms of the new Mahalanobis distance is
added. solvecov
is used to invert singular covariance
matrices.
A logical vector of length nrow(x)
.
Christian Hennig christian.hennig@unibo.it https://www.unibo.it/sitoweb/christian.hennig/en/
fixmahal
, solvecov
set.seed(4634)
face <- rFace(600,dMoNo=2,dNoEy=0,p=2)
mahalconf(face,no=200,startn=20,covall=cov(face),plot="start")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.