DistmatLowerTriangular-class: Distance matrix's lower triangular

DistmatLowerTriangular-classR Documentation

Distance matrix's lower triangular

Description

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

Details

If you wish to, you can use this class to access dist elements with [ as if it were a normal matrix. You can use methods::new passing the dist object in a distmat argument.

Fields

distmat

The lower triangular.

Methods

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

Initialization based on needed parameters

Examples


dm <- new("DistmatLowerTriangular",
          distmat = proxy::dist(CharTraj[1:5], method = "gak", sigma = 5.5, window.size = 10L))

dm[2:3, 4:5]


dtwclust documentation built on Sept. 11, 2024, 9:07 p.m.