weightedL1Distance: Weighted L1 Distance

View source: R/weightedL1Distance.R

weightedL1DistanceR 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 matrix or table form

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


pcaL1 documentation built on Jan. 22, 2023, 1:55 a.m.