Given a set of vectors in a finite dimensional vector space, sparsity is the property of there existing a basis in which most of the length of the vectors are contributed by only a few coefficients.
Sparsity is quite general an idea, and can be made more concrete by defining specific sparsity measures. As an example, natural images and sounds often exhibit high sparsity, which is taken advantage of in compression. In particular, the discrete cosine transform is well-known for its ability to transform blocks of natural images to sparse representations.
In Pastel, a sparsity measure is a function which satisfies that:
We shall define the p-sparsity measure, , by
where
and
In particular, , and .