Description Usage Arguments Details Value Author(s) See Also Examples
Initialise the prototypes of a Self-Organising Map with Principal Component Analysis. The prototypes are regulary positioned (according to the prior structure) in the subspace spanned by the two first principal components.
1 2 |
data |
the data to which the SOM will be fitted, a matrix or data frame of observations (which should be scaled) |
somgrid |
a |
weights |
optional weights for the data points |
with.princomp |
switch specifying whether the
|
... |
not used |
When the optional weights are specified, the weighted covariance of the
data is computed via cov.wt. Then princomp
is used to find the two first principal components of the data. When
weights are missing, the PCA is conducted via
prcomp, expect is the function is told to use
princomp via the with.princomp parameter. As a
consequence, if
with.princomp=FALSE, the results of the function applied to
unweighted data points are likely to differ from the ones obtained on
the same data points with uniform weights.
A list with the following components
prototype |
a matrix containing appropriate initial prototypes |
data.pca |
the results of the PCA conducted on the data via a
call to |
Fabrice Rossi
somgrid for specifying the prior structure and
sominit.random for random based initialisations.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.