Skip to contents

Plot method for "hms" class.

Usage

# S4 method for hms
plot(x)

Arguments

x
  • hms s4 object

Value

It doesn't return anything meaningful. It plots the fitness by metaepoch count.

Examples

f <- function(x) x
result <- hms(fitness = f, lower = -5, upper = 5)
#> A list of standard deviations (sigma) or a function to create population should be provided.
#> Metaepoch: 0 Best fitness: 4.958112 
#> Metaepoch: 1 Best fitness: 4.976439 
#> Metaepoch: 2 Best fitness: 4.994604 
#> Metaepoch: 3 Best fitness: 4.994604 
#> Metaepoch: 4 Best fitness: 4.994604 
#> Metaepoch: 5 Best fitness: 4.994604 
#> Metaepoch: 6 Best fitness: 4.997675 
#> Metaepoch: 7 Best fitness: 4.997675 
#> Metaepoch: 8 Best fitness: 4.999218 
#> Metaepoch: 9 Best fitness: 4.999218 
plot(result)