View source: R/weightedL1Distance.R
weightedL1Distance | R Documentation |
Provides the (weighted) L1-norm distances and total distance of points to a subspace.
weightedL1Distance(X, loadings, weights)
X |
data, in |
loadings |
an orthonormal matrix of loadings vectors |
weights |
a list of weights for loadings vectors |
The reconstructions are calculated by solving a linear program. Then the weights are applied to the distances.
'weightedL1Distance' returns a list containing the following components:
wDistances |
list of weighted distances |
totalDistance |
total distance |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.