Contents:
Returns the number of largest components containing a given percentage of energy
a (jax.numpy.ndarray) – A vector of coefficients
p (float) – percentage of energy