karhunen_loeve_transform

jwst.coron.klip.karhunen_loeve_transform(m, normalize=False)[source]

Calculate Karhunen-Loeve Transform of the input.

Parameters:
mndarray

The array of flattened, background subtracted reference arrays

normalizebool

If True, normalize the returned transform

Returns:
klvectndarray

The Karhunen-Loeve Transform of the input arrays

eigvalndarray

Array of eigenvalues

eigvectndarray

Matrix of eigenvectors