AMOCpopulation | R Documentation |
Randomly generate the individuals' chromosomes (changepoint configurations) to construct the first generation population for the at most one changepoint (AMOC) problem.
AMOCpopulation(popsize, p.range, N, minDist, Pchangepoint, mmax, lmax)
popsize |
An integer represents the number of individual in each population for GA (or subpopulation for IslandGA). |
p.range |
Default is |
N |
The length of time series. |
minDist |
The minimum length between two adjacent changepoints. |
Pchangepoint |
The probability that a changepoint can occur. |
mmax |
The maximum possible number of changepoints in the data set. |
lmax |
The maximum possible length of the chromosome representation. |
Given the possible candidate changepoint location set, each chromosome in the first generation population can be obtained by randomly sampling one location from the candidate set. The first element of every chromosome represent the number of changepoints and the last non-zero element always equal to the length of time series plus one (N+1).
A matrix that contains each individual's chromosome.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.