Popinitial_fixknots: Fixed-Knots Population Initializer

View source: R/gareg_knots.R

Popinitial_fixknotsR Documentation

Fixed-Knots Population Initializer

Description

Initializes a population matrix for the fixed-knots GA. Each column is a feasible chromosome sampled by selectTau_uniform_exact.

Usage

Popinitial_fixknots(
  popSize,
  prange = NULL,
  N,
  minDist,
  Pb,
  mmax,
  lmax,
  fixedknots
)

Arguments

popSize

Integer; number of individuals (columns).

prange

Optional hyperparameter range (unused here).

N

Series length.

minDist

Integer minimum spacing between adjacent changepoints.

Pb

Unused placeholder (kept for compatibility).

mmax, lmax

Integers; maximum number of knots and chromosome length.

fixedknots

Integer; number of knots to place.

Value

Integer matrix of size lmax x popSize; each column is a chromosome c(m, tau_1, ..., tau_m, N+1, ...).

See Also

selectTau_uniform_exact, gareg_knots


GAReg documentation built on March 29, 2026, 5:08 p.m.