Learn R Programming

IceCast (version 2.1.0)

dist_mat: Compute 'distances' among $n$ lines

Description

Creates a matrix specifying how difference indices are among an ordered set of indices. For lines with indices \(i\) and \(j\), the 'distance' computed is \(|i -j|\). Results are used to define covariance.

Usage

dist_mat(n_lines)

Arguments

n_lines

number of lines in matrix

Value

Matrix of `distances' among the indices