Skip to contents

Compute loss function for OSS (r-version)

Usage

rComputeLoss(candi, last_index, X, norm, p = ncol(X))

Arguments

candi

The index of the candidate set.

last_index

The index of the seleted point in last iteration.

X

The whole data.

norm

Norm of the whole data.

p

Numbers of columns of the data.

Value

Loss of every point in candidate set.