Package org.esa.snap.core.util.math
Class UnconstrainedLSU
java.lang.Object
org.esa.snap.core.util.math.UnconstrainedLSU
- All Implemented Interfaces:
SpectralUnmixing
- Direct Known Subclasses:
ConstrainedLSU
Performs an unconstrained linear spectral unmixing.
- Since:
- 4.1
-
Constructor Summary
ConstructorsConstructorDescriptionUnconstrainedLSU(double[][] endmembers) Constructs a new instance of this class. -
Method Summary
-
Constructor Details
-
UnconstrainedLSU
public UnconstrainedLSU(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
-
getEndmembers
public double[][] getEndmembers()Returns the endmembers.- Returns:
- endmembers the endmembers, where number of rows = number of spectral channels number of cols = number of endmember spectra
-
unmix
public double[][] unmix(double[][] spectra) Description copied from interface:SpectralUnmixingPerforms a linear spectral unmixing of a set of spectra.- Specified by:
unmixin interfaceSpectralUnmixing- 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
-
mix
public double[][] mix(double[][] abundances) Description copied from interface:SpectralUnmixingCalculates the spectra for a set of abundances.- Specified by:
mixin interfaceSpectralUnmixing- Parameters:
abundances- the abundances, where number of rows = number of endmembers number of cols = number of spectra- Returns:
- the resulting spectra, where number of rows = number of spectral channels number of cols = number of spectra
-