Orders components by signal-to-noise ratio rather than variance. Estimates noise covariance from spatial first-differences.
Arguments
- cube
An hsi_cube object.
- n_components
Integer. Number of components. Default
5.
Value
A list with class "hsi_mnf" (same structure as hs_pca()).
Examples
cube <- hs_example_cube()
mnf <- hs_mnf(cube, n_components = 3)
dim(mnf$scores)
#> [1] 30 30 3