fit: Generic Function - fit

fitR Documentation

Generic Function – fit

Description

Generic function

Usage

  fit(object)

Arguments

object

Depending on the class of object depends on the method used (and if one exists)

Details

Generic Function

The five fit measurements defined below are based on the most common sampled within period changepoint vector:

1

Log of the marginalised sampling distribution and segment prior distributions. This is used in the core of the PeriodCPT algorithm.

2

Log of maximum value from the sampling distribution and segment prior distributions. This point corresponds to the posterior mode of the segment parameters.

3

Log of the integrated sampling distribution over the segment parameters.

4

Log of the sampling distribution evaluated at the segment parameter posterior mode.

5

Log of the maximum value of the sampling distribution. This corresponds to evaluation at the maximum likelihood values.

All the above measures are multiplied by -2 to give the returned fit values.

Value

Depends on the calss of object, see individual methods

Author(s)

Simon Taylor Rebecca Killick

See Also

fit-methods

Examples

x = new("pcpt") # new pcpt object
fit(x) = 100
fit(x)

taylors2/PeriodCPT documentation built on June 28, 2024, 12:32 p.m.