clusterSPcenters {sarp.snowprofile.alignment} | R Documentation |
Wrapper for calculating centroids averageSP or medoids medoidSP when clustering, with efficient optimization when iterating kdba clustering calculations
clusterSPcenters(
SPx,
clustering,
config,
centers = "centroids",
clustering_old = NULL,
cents = NULL,
distmat = NULL
)
SPx |
a sarp.snowprofile::snowprofileSet to be clustered |
clustering |
vector of integers (from 1:k) indicating the cluster to which each snow profile is allocated |
config |
a list providing the necessary hyperparameters for distance and average calculations. Use clusterSPconfig functions for convenience! |
centers |
type of center to determine, either |
clustering_old |
same as |
cents |
a sarp.snowprofile::snowprofileSet of centroids from the previous iteration; provide |
distmat |
a precomputed distance matrix of class dist (for faster medoid calculations) |
a named sarp.snowprofile::snowprofileSet of centroid/medoids profiles for each cluster where the name refers to the corresponding cluster and is sorted in ascending manner.
fherla shorton