trajectoryWeightMatrix: trajectoryWeightMatrix

Description Usage Arguments Value Examples

View source: R/build.R

Description

Create weight matrix for trajectory data

Usage

1

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

1
2
3
4
W <- trajectoryWeightMatrix(100)
W <- trajectoryWeightMatrix(100, type = "triangular")
W <- trajectoryWeightMatrix(100, type = "block")
W <- trajectoryWeightMatrix(100, type = "harmonic")

scHOT documentation built on Nov. 8, 2020, 5:06 p.m.