Distance matrix to binary matrix based on threshold value

mat_di2bi(distmat, emRad = NA, convMat = FALSE)

Arguments

distmat

Distance matrix

emRad

The radius or threshold value

convMat

Should the matrix be converted from a distmat object of class Matrix::Matrix() to base::matrix() (or vice versa)

Value

A (sparse) matrix with only 0s and 1s

See also

Other Distance matrix operations (recurrence plot): bandReplace(), createCorridor(), mat_di2ch(), mat_di2we(), mat_hamming(), rp(), rp_lineDist(), rp_nzdiags(), rp_plot(), rp_size()

Other Distance matrix operations (recurrence network): mat_di2ch(), mat_di2we(), rn(), rn_phases(), rn_plot(), rn_recSpec()