R: Sparse distance matrix

SparseDistmat-class {dtwclust} | R Documentation

## Sparse distance matrix

### Description

Reference class that is used internally for PAM centroids when `pam.precompute = FALSE` and `pam.sparse = TRUE`. It allows for mutable state. It contains Distmat.

### Fields

`distmat`

  The sparse matrix.

`symmetric`

  Logical indicating if the matrix is symmetric.

`distmat_indices`

  External pointer (C++ class) with the indices of existing values within the matrix, and the method to update them.

### Methods

`initialize(..., distmat, series, distance, control, error.check = TRUE)`

  Initialization based on needed parameters

[Package dtwclust version 5.5.7 Index]