cost_matrix_diagonal_cpp: (C++) Compute Orthogonal and Diagonal Least Cost Matrix from...

View source: R/RcppExports.R

cost_matrix_diagonal_cppR Documentation

(C++) Compute Orthogonal and Diagonal Least Cost Matrix from a Distance Matrix

Description

Computes the least cost matrix from a distance matrix. Considers diagonals during computation of least-costs.

Usage

cost_matrix_diagonal_cpp(dist_matrix)

Arguments

dist_matrix

(required, distance matrix). Square distance matrix, output of distance_matrix_cpp().

Value

Least cost matrix.

See Also

Other Rcpp_matrix: cost_matrix_diagonal_weighted_cpp(), cost_matrix_orthogonal_cpp(), distance_ls_cpp(), distance_matrix_cpp()


distantia documentation built on April 4, 2025, 5:42 a.m.