calc.dist.d.neighbor: INTERNAL

Description Usage Arguments Value

Description

Calculates distance between variables d neighbors apart

Usage

1
calc.dist.d.neigbor(ordr.vec, d, dist.type = "spearman")

Arguments

ordr.vec

An (n by m) ordered matrix of vectors representing realization of random variables. Each column is a variable, and the columns are ordered, here according to chromosomal location.

d

Calculate distances between vectors d neighbors apart.

dist.type

The type of distance (“spearman", “pearson", “euclid")

Value

A vector of distances between each vector and the vector d neighbors apart from it. The last d-1 vectors are given infinity distance, so that returned vector is of length m.


ftyu1234/Aclust documentation built on May 16, 2019, 3:37 p.m.