Add small random noise to cost matrix for tie-breaking.
Usage
add_noise_to_cost(cost_matrix, scale = 1e-10, seed = NULL)
Arguments
- cost_matrix
Cost matrix.
- scale
Scale of random noise. Default is 1e-10.
- seed
Random seed. Default is NULL.
Value
Cost matrix with added noise.