trajectoryWeightMatrix: trajectoryWeightMatrix

View source: R/build.R

trajectoryWeightMatrixR Documentation

trajectoryWeightMatrix

Description

Create weight matrix for trajectory data

Usage

trajectoryWeightMatrix(n, type = NULL, span = NULL)

Arguments

n

indicates the number of cels

type

Type of weight matrix, one of "triangular" (default), "block", and "harmonic"

span

proportion of samples to include on either side, default is 0.25

Value

A weighted matrix

Examples


W <- trajectoryWeightMatrix(100)
W <- trajectoryWeightMatrix(100, type = "triangular")
W <- trajectoryWeightMatrix(100, type = "block")
W <- trajectoryWeightMatrix(100, type = "harmonic")


shazanfar/scHOT documentation built on June 29, 2023, 5:29 p.m.