selectTau: Randomly select the chromosome

View source: R/RcppExports.R

selectTauR Documentation

Randomly select the chromosome

Description

Randomly select the changepoint configuration for population initialization. The selected changepoint configuration represents a changepoint chromosome. The first element of the chromosome represent the number of changepoints and the last non-zero element always equal to the length of time series + 1.

Usage

selectTau(N, prange, minDist, Pb, mmax, lmax)

Arguments

N

The length of time series.

prange

A list object containing the possible range for other pre-defined model parameters, i.e. AR/MA order of ARMA models.

minDist

The minimum length between two adjacent changepoints.

Pb

Same as Pchangepoint, the probability that a changepoint has occurred.

mmax

The maximum possible number of changepoints in the data set.

lmax

The maximum possible length of the chromosome representation.

Value

A single changepoint configuration format as above.


changepointGA documentation built on April 4, 2025, 4:39 a.m.