build_transition_matrix: Computes a matrix of transition probabilities.

View source: R/build_transition_matrix.R

build_transition_matrixR Documentation

Computes a matrix of transition probabilities.

Description

Computes a matrix of transition probabilities.

Usage

build_transition_matrix(x, method = "cosine", threads = 4L)

Arguments

x

a numeric matrix (each row is one series) or list of numeric matrices for multidimensional series (each matrix is one series, a row is a dimension of a series)

method

the distance measure to be used. A list of all available distance methods can be found in ?parallelDist::parDist

threads

number of cpu threads for calculating a distance matrix. Default is 4.

Value

a V x V matrix of transition probabilities, with V = number of rows in x.

Examples


transition_matrix <- build_transition_matrix(anes2016_glove, threads = 2)


prodriguezsosa/labelProp documentation built on May 14, 2023, 11:19 a.m.