create_child {autohrf}R Documentation

create_child

Description

A helper function for creating a child from parents.

Usage

create_child(
  start_time,
  end_time,
  n_events,
  mutation_rate,
  mutation_factor,
  current_model,
  p1,
  p2,
  allow_overlap
)

Arguments

start_time

A list with model's event start times.

end_time

A list with model's event end times.

n_events

Number of events in the model.

mutation_rate

The mutation rate in the genetic algorithm.

mutation_factor

The mutation factor in the genetic algorithm.

current_model

The constraints of the current model.

p1

The first selected parent.

p2

The second selected parent.

allow_overlap

Whether to allow overlap between events.

Value

A child model created from two parents.


[Package autohrf version 1.1.3 Index]