cos_dist: Distance measurements

Description Usage Arguments Details Value Functions

View source: R/connectivityMatrices.R

Description

Distance measurements

Usage

1
2
3
4
5
6
7
cos_dist(mat)

sqrt_cos_dist(mat)

cor_dist(mat)

bin_dist(mat, threshold = 0.01)

Arguments

mat

A matrix

threshold

Threshold to use to binarize the matrix

Details

cos_dist returns the cosine distance, sqrt_cos_dist the squared cosine distance, cor_dist one minus the spearman correlation between vectors, and bin_dist the binary distance after thresholding

Value

A distance object containing distances between the rows of mat

Functions


jayaraman-lab/neuprintrExtra documentation built on Dec. 20, 2021, 10 p.m.