| cptga-class | R Documentation |
S4 Class for Genetic Algorithm-Based Changepoint Detection
## S4 method for signature 'cptga'
summary(object, ...)
object |
An object of class |
... |
Additional arguments (ignored). |
An object of class cptga stores results and configuration settings
for changepoint detection using a Genetic Algorithm (GA), optionally with
simultaneous model order selection. This class records GA control parameters,
intermediate population structures, and the optimal solution found.
An object of class cptga.
callThe matched call that created the object.
NThe sample size of the time series.
prangeA list object. Default is NULL. If specified, it contains the
ranges for each model order parameter (integers). Required when option = "both"
is used for joint changepoint and model selection.
popSizeAn integer representing the number of individuals in each GA population.
pcrossoverThe probability that the crossover operator is applied to two chromosomes.
pmutationThe probability that the mutation operator is applied to a chromosome.
pchangepointThe prior probability that a changepoint has occurred at each location.
minDistThe minimum allowed distance between two adjacent changepoints.
mmaxThe maximum possible number of changepoints. Typically set based on time series length and option.
lmaxThe maximum length of the chromosome. Typically set based on time series length and option.
maxgenThe maximum number of generations the GA is allowed to run.
maxconvIf the optimal fitness value does not improve over this many generations, GA stops.
optionA character string: either "cp" for changepoint detection only, or "both" for changepoint detection and model order selection.
monitoringLogical. If TRUE, prints intermediate GA progress.
parallelLogical. If TRUE, enables parallel computation for fitness evaluation.
nCoreInteger or NULL. Number of cores used for parallel computation when parallel = TRUE.
tolNumeric. Tolerance for determining GA convergence. Default is 1e-5.
seedAn integer or NULL. Random seed for reproducibility.
suggestionsA list or NULL. Each element provides suggested changepoint locations
to guide initial population design and potentially accelerate convergence.
populationA matrix where each row represents an individual chromosome in the current population.
fitnessA numeric vector containing the fitness values of individuals in the current generation.
overbestchromA vector representing the best chromosome found over all generations.
overbestfitA numeric scalar. The best (smallest) fitness value achieved.
bestfitA numeric vector recording the best fitness value in each generation.
countA numeric value indicating the number of generations the GA actually ran.
convgA numeric vector representing convergence information. A value of 0 indicates the algorithm successful completion. A value of 1 indicates the the total number of generations exceeds the pre-specified maxgen limit.
cptga, cptga-class, random_population, selection_linearrank, uniformcrossover, mutation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.