Skip to contents

Computes the least cost matrix from a distance matrix. Weights diagonals by a factor of 1.414214 with respect to orthogonal paths.

Usage

cost_matrix_diagonal_weighted_cpp(dist_matrix)

Arguments

dist_matrix

(required, distance matrix). Distance matrix.

Value

Least cost matrix.