n_counts: Second order transition counts for a single binary chain.

Description Usage Arguments

Description

n_counts counts the number of second order transitions in a binary chain of data, then returns a three dimensional vector whose indices represent the type of transition, and whose values represent the number of times that each transition occurs in the chain.

Usage

1
n_counts(bin_chain, n_chain_uniques)

Arguments

bin_chain

An integer vector representing a chain of data.

n_chain_uniques

The number or unique values in the chain bin_chains, represented as an integer value.


cwcartmell/maRkov documentation built on May 14, 2019, 1:37 p.m.