View source: R/build_transition_matrix.R
build_transition_matrix | R Documentation |
Computes a matrix of transition probabilities.
build_transition_matrix(x, method = "cosine", threads = 4L)
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 |
threads |
number of cpu threads for calculating a distance matrix. Default is 4. |
a V x V matrix of transition probabilities, with V = number of rows in x.
transition_matrix <- build_transition_matrix(anes2016_glove, threads = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.