find_clusters: Tract Clustering

Description Usage Arguments Value Examples

Description

Tract Clustering

Usage

1
2
find_clusters(distance_vector, k = 1L, max_iter = 100L,
  nstart = 100L, ncores = 1L)

Arguments

k

An integer specifying the number of clusters (default: 1L).

max_iter

An integer specifying the maximum number of iterations (default: 100L).

nstart

An integer specifying the number of random initializations (default: 100L).

ncores

An integer specifying the number of cores available for the computations (default: 1L).

distance_matrix

A matrix of size n x n where n is the number of streamlines in the tract and each entry of the matrix evaluates the distance between two streamlines.

Value

A list with two components: groups gives membership of each individual streamline while centroids gives the labels of the groups' centroids.

Examples

1
2
3
4
D <- matrix(runif(100), 10L, 10L)
D <- (D + t(D)) / 2
diag(D) <- 0
find_clusters(D, k = 4L)

astamm/fdatractography documentation built on May 12, 2019, 5:37 a.m.