Package org.esa.snap.core.util.math
Class ConstrainedLSU
java.lang.Object
org.esa.snap.core.util.math.UnconstrainedLSU
org.esa.snap.core.util.math.ConstrainedLSU
- All Implemented Interfaces:
SpectralUnmixing
Performs a constrained linear spectral unmixing, where the sum
of abundances always is equal to unity.
- Since:
- 4.1
-
Constructor Summary
ConstructorsConstructorDescriptionConstrainedLSU(double[][] endmembers) Constructs a new instance of this class. -
Method Summary
Modifier and TypeMethodDescriptiondouble[][]unmix(double[][] spectra) Performs a linear spectral unmixing of a set of spectra.Methods inherited from class org.esa.snap.core.util.math.UnconstrainedLSU
getEndmembers, mix
-
Constructor Details
-
ConstrainedLSU
public ConstrainedLSU(double[][] endmembers) Constructs a new instance of this class.- Parameters:
endmembers- the endmembers, where number of rows = number of spectral channels number of cols = number of endmember spectra
-
-
Method Details
-
unmix
public double[][] unmix(double[][] spectra) Description copied from interface:SpectralUnmixingPerforms a linear spectral unmixing of a set of spectra.- Specified by:
unmixin interfaceSpectralUnmixing- Overrides:
unmixin classUnconstrainedLSU- Parameters:
spectra- the spectra, where number of rows = number of spectral channels number of cols = number of spectra- Returns:
- the abundances, where number of rows = number of endmembers number of cols = number of spectra
-