This method exhaustively checks every possible simplex that could be formed from p points and returns the indices that generate the simplex with the largest volume. This should indicate the endmembers based on the theory of N-FINDR. It should only be used for testing purposes as it is extremely slow for non-trivial datasets. Intended to be called from nfindr.

nfindrBrute(data, p, ..., debuglevel = .options("debuglevel"))

Arguments

data

Data matrix to unmix.

p

Number of endmembers.

...

Extra unused parameters passed in from nfindr.

debuglevel

If >= 1L, print top simplices with their corresponding volume.

Value

The indices of the endmembers in the original dataset or a data.frame holding indices and corresponding volume if volume = TRUE.