Parent Topic: K-Means & Fuzzy K-Means
The time to compute each iteration is proportional to the number of samples used. This means that using a lot more than the default number of samples can make the clustering process much slower. Also, all the samples are stored in memory, meaning that a large NSAM value can lead to higher memory requirements. With 262144 samples and five bands of eight bit input data, the program would require approximately 1.3MB of memory while with NSAM set to 2000000, it would take 10MB of memory.