pelt.gamma.sum: Calculate Summary Statistics used for Gamma likelihood...

Description Usage Arguments Details Value Examples

View source: R/pelt.bck.R View source: R/pelt.R

Description

Calculates the necessary summary statistics which are to be used as part of the calculation of the Gamma likelihood for the PELT algorithm. Not typically used outside of this purpose.

Calculates the necessary summary statistics which are to be used as part of the calculation of the Gamma likelihood for the PELT algorithm. Not typically used outside of this purpose.

Usage

1
2
3

Arguments

data

A vector of time-ordered observations to be analysed using PELT.

data

A vector of time-ordered observations to be analysed using PELT.

Details

An internal function, not designed for use by the end-user.

An internal function, not designed for use by the end-user.

Value

A vector containing the cumulative sums of the observations.

A vector containing the cumulative sums of the observations.

Examples

1
2
3
4
data = rgamma(n=100, shape=1, scale=1/2)
pelt.gamma.sum(data)
data = rgamma(n=100, shape=1, scale=1/2)
pelt.gamma.sum(data)

benpickering/smop documentation built on Sept. 4, 2020, 1:45 a.m.