cptgaisl-class: S4 Class Definition for 'cptgaisl'

cptgaisl-classR Documentation

S4 Class Definition for 'cptgaisl'

Description

S4 Class for Island Model Genetic Algorithm-Based Changepoint Detection

Usage

## S4 method for signature 'cptgaisl'
summary(object, ...)

Arguments

object

An object of class cptgaisl.

...

Additional arguments (ignored).

Details

This class stores results and settings for the island model genetic algorithm ('cptgaisl') used in multiple changepoint detection and optional model order selection.

Value

An object of class cptgaisl

Slots

call

The matched call that created the object.

N

The sample size of the time series.

prange

A list or NULL. Ranges for each model order parameter when option = "both".

popSize

Integer. It represents the total number of individuals in each generation, which equal to the number of islands multiplied by the size of each island (i.e., popSize = numIslands × Islandsize).

numIslands

Integer. The number of islands (sub-populations).

Islandsize

Numerical value. The number of individuals in each island.

pcrossover

Probability of crossover operation.

pmutation

Probability of mutation operation.

pchangepoint

Prior probability of changepoint occurrence.

minDist

Minimum distance between adjacent changepoints.

mmax

Maximum number of changepoints allowed.

lmax

Maximum length of chromosome.

maxMig

Maximum number of migrations allowed.

maxgen

Maximum number of generations per island before migration.

maxconv

Number of migrations with no improvement before stopping.

option

Either "cp" or "both".

monitoring

Logical. If TRUE, prints intermediate output.

parallel

Logical. Whether parallel computation is used.

nCore

Integer or NULL. Number of cores for parallelization.

tol

Tolerance threshold for fitness improvement.

seed

Integer or NULL. Seed for reproducibility.

suggestions

A list or NULL. Suggested changepoint configurations.

Island

A 3D array storing all individual chromosomes in current generation across islands. Dimensions are lmax × Islandsize × numIslands, representing chromosome length, individuals per island, and number of islands, respectively.

IslandFit

A matrix of fitness values in current generation with dimensions Islandsize × numIslands, where each column corresponds to one island's population.

overbestchrom

A vector. The best chromosome ever found.

overbestfit

Numeric. The best fitness score obtained.

bestfit

Numeric vector recording best fitness per migration.

countMig

Integer vector tracking number of migrations.

count

Integer vector tracking total generations.

convg

Integer vector for convergence diagnostics.

See Also

cptgaisl, cptgaisl-class, random_population, selection_linearrank, uniformcrossover, mutation.


changepointGA documentation built on Nov. 5, 2025, 6:54 p.m.