weightedL1Distance {pcaL1} | R Documentation |
Weighted L1 Distance
Description
Provides the (weighted) L1-norm distances and total distance of points to a subspace.
Usage
weightedL1Distance(X, loadings, weights)
Arguments
X |
data, in |
loadings |
an orthonormal matrix of loadings vectors |
weights |
a list of weights for loadings vectors |
Details
The reconstructions are calculated by solving a linear program. Then the weights are applied to the distances.
Value
'weightedL1Distance' returns a list containing the following components:
wDistances |
list of weighted distances |
totalDistance |
total distance |
[Package pcaL1 version 1.5.7 Index]