# Build a function to generate the population
f <- build_gabin_population(CET)
# Segment the time series using the population generation function
segment(CET, method = "ga", population = f, maxiter = 5)
f <- log_gabin_population(CET)
segment(CET, method = "ga", population = f, maxiter = 10)
Run the code above in your browser using DataLab