print.summary.cptga: Print Summary for a 'cptga' Object

View source: R/cptga-class.R

print.summary.cptgaR Documentation

Print Summary for a 'cptga' Object

Description

Displays key information about the settings and results from a changepoint detection procedure using the Genetic Algorithm (GA) stored in a 'cptga' object. This includes the algorithm configuration, population settings, optimization mode, and final solution such as the number and location of changepoints and model parameters (if applicable).

Usage

## S3 method for class 'summary.cptga'
print(x, digits = getOption("digits"), max_display = 5, ...)

Arguments

x

An object of class cptga, typically produced by a GA-based changepoint detection routine.

digits

Number of digits to print for probabilities and fitness. Default taken from getOption("digits").

max_display

Maximum number of suggested solutions to display if suggestions are provided.

...

Additional arguments (currently not used).

Details

When the GA is run in option = "cp" mode, only changepoint locations are shown. If option = "both", the output includes the selected model hyperparameters along with changepoint locations.

The function uses plain text output to print a formatted summary to the console. If x@suggestions is provided, only up to max_display suggestions will be shown.

Value

Invisibly returns NULL. Called for its side effect of printing to the console.

See Also

cptga, summary, plot.cptga


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