ATGP (Automatic Target Generation Procedure) algorithm.

atgp(data, p)

Arguments

data

Data matrix. It will be converted to a matrix using as.matrix. The matrix should contain a spectrum per row.

p

Number of endmembers.

Value

A list which contains:

  • indices: the indices of the calculated endmembers.

  • projection_vectors: the projection vectors of the calculated endmembers. Included only when debug level is 1 or higher.

References

Based on Python implementation in [pysptools](https://github.com/ctherien/pysptools/blob/fbcd3ecaa7ab27f0158b28b4327537c3e75db160/pysptools/eea/eea.py#L52)