clusterSPkdba {sarp.snowprofile.alignment}R Documentation

K-dimensional barycentric average clustering for snow profiles

Description

K-dimensional barycentric average clustering for snow profiles

Usage

clusterSPkdba(
  SPx,
  k,
  config = clusterSPconfig(type = "kdba"),
  centers = "centroids",
  distmat = NULL,
  keepSPx = TRUE
)

Arguments

SPx

a sarp.snowprofile::snowprofileSet to be clustered

k

number of desired cluster numbers

config

a list providing the necessary hyperparameters. Use clusterSPconfig function with type = kdba for convenience!

centers

type of center to determine, either centroids (default) where an average profile is computed for each cluster or medoids where the index of the medoid profile is identified

distmat

a precomputed distance matrix of class dist (only used if centers = medoids)

keepSPx

append the snowprofileSet to the output?

Value

a list of class clusterSP containing:

Author(s)

fherla shorton

See Also

clusterSP, clusterSPcenters

Examples

this_example_runs_too_long <- TRUE
if (!this_example_runs_too_long) {  # exclude from cran checks
  cl_kdba <- clusterSPkdba(SPgroup2, k = 2)
  plot(cl_kdba)
}

[Package sarp.snowprofile.alignment version 2.0.2 Index]