word_probability: Probability of a word at a position t of a DMM

View source: R/word.R

word_probabilityR Documentation

Probability of a word at a position t of a DMM

Description

Probability of a word at a position t of a DMM

Usage

word_probability(word, pos, x, output_file = NULL, internal = FALSE, ncpu = 2)

Arguments

word

A subsequence (string of characters)

pos

A position (numeric): the word starts at X_{pos}, the first k states being drawn from the stationary law of \Pi_{\frac{pos}{n}} and the next ones with the transition matrices at their positions

x

An object of class dmm

output_file

(Optional) A file containing the probability (e.g,"C:/.../PROB.txt")

internal

FALSE (default). For internal use only: with TRUE, the result is not named

ncpu

Default=2. Kept for compatibility: the computation is sequential.

Value

A numeric, probability of word

Author(s)

Victor Mataigne, Alexandre Seiller

References

\insertRef

BaVe2018drimmR \insertRefVer08drimmR

See Also

fitdmm, getTransitionMatrix, word_probabilities, words_probabilities

Examples

data(lambda, package = "drimmR")
dmm <- fitdmm(lambda, 1, 1, c('a','c','g','t'), init.estim = "freq", fit.method="sum")
word_probability("aggctga",4,dmm)

drimmR documentation built on Dec. 2, 2026, 1:07 a.m.