Skip to contents

Sparsity Count the non-zero coefficients

Usage

sparsity(x, treshold = .Machine$double.eps)

Arguments

x

vector

treshold

threshold for zero

Value

number of non-zero values