This function uses package self-organized maps
to find clusters in satellite image time series to cluster the samples.
It also evaluates the quality of each sample using SOM properties.
The results is a list with three members:
(1) the samples tibble, with one additional column indicating
to which neuron it has been mapped;
(2) the Kohonen map, used for plotting and cluster quality measures;
(3) a tibble with the labelled neurons,
where each class of each neuron is associated to two values:
(a) the prior probability that this class belongs to a cluster
based on the frequency of samples of this class allocated to the neuron;
(b) the posterior probability that this class belongs to a cluster,
using data for the neighbours on the SOM map.