boxprobt: Box Cumulative Sums

View source: R/auxiliary.r

boxprobtR Documentation

Box Cumulative Sums

Description

A box cumulative sum is defined as the cumulative sum over a lower left rectangle. This function is primarily for use when the components are point probabilities for the number of crossings C and the longest run L, then component (c,l) in the result is the probability P(C ≥ c, L ≤ l).

Usage

boxprobt(mtrx)

Arguments

mtrx

mpfr array

Value

mpfr array

Examples

nill <- Rmpfr::mpfr(0, 120)
one <- Rmpfr::mpfr(1, 120)
two <- Rmpfr::mpfr(2, 120)
contents <- c(one,nill,nill, one,one,one, two,two,two)
mtrx3 <- Rmpfr::mpfr2array(contents, dim = c(3, 3))
print(mtrx3)
print(boxprobt(mtrx3))

ToreWentzel-Larsen/crossrun documentation built on April 19, 2022, 9:19 a.m.