Retrieves the endmembers from a dataset using the model returned by nfindr, vca, or atgp.

endmembers(object, data = NULL)

Arguments

object

A pure-pixel model structure (class pure_endmembers) returned by nfindr, vca, or atgp.

data

The data used to calculate the endmembers. If not provided the data used to calculate the endmembers will be retrieved from the object.

Value

A matrix where each row is an endmember as calculated by the unmixing algorithm.

Warning

If dimension reduction was performed prior to unmixing this function returns the scores of the corresponding endmembers. In this case, to get the original spectra you probably want endmembers(object, raw_data) which is equivalent to raw_data[object$indices,].

See also

vca, nfindr, atgp, and abundances for examples.