Nothing
#' @title
#' Construct a mutation operator.
#'
#' @description
#' Helper function which constructs a mutator, i. e., a mutation operator.
#'
#' @param mutator [\code{function}]\cr
#' Actual mutation operator.
#' @param supported [\code{character}]\cr
#' Vector of strings/names of supported parameter representations. Possible choices:
#' \dQuote{permutation}, \dQuote{float}, \dQuote{binary} or \dQuote{custom}.
#' @return [\code{ecr_mutator}]
#' Mutator object.
#' @export
makeMutator = function(
mutator,
supported = getAvailableRepresentations()) {
assertFunction(mutator)
mutator = makeOperator(mutator, supported)
mutator = addClasses(mutator, c("ecr_mutator"))
return(mutator)
}
# Helper function which returns all supported parameter representations.
getAvailableRepresentations = function() {
c("permutation", "binary", "float", "custom")
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.