Learn R Programming

ecr (version 1.0)

makeMutator: Construct a mutation operator.

Description

Helper function which constructs a mutator, i. e., a mutation operator.

Usage

makeMutator(mutator, name, description, supported = getAvailableRepresentations(), params = list())

Arguments

mutator
[function] Actual mutation operator.
name
[character(1)] Name of the mutator.
description
[character(1)] Short description of how the mutator works.
supported
[character] Vector of strings/names of supported parameter representations. For example 'permutation', 'float', 'binary'.
params
[list] Named list of the parameters the operator has been initialized with. Default is the empty list.

Value

[ecr_mutator] Mutator object.