| dict_filtors_null | R Documentation |
Null-filtor that does not perform filtering. Its needed_input() is always the output_size, and operate() selects the first n_filter values from its input.
Useful in particular with operator-wrappers such as FiltorProxy, and to make filtering optional.
This operator has no configuration parameters.
Supported Domain classes are: p_lgl ('ParamLgl'), p_int ('ParamInt'), p_dbl ('ParamDbl'), p_fct ('ParamFct')
This Filtor can be created with the short access form ftr()
(ftrs() to get a list), or through the the dictionary
dict_filtors in the following way:
# preferred:
ftr("null")
ftrs("null") # takes vector IDs, returns list of Filtors
# long form:
dict_filtors$get("null")
miesmuschel::MiesOperator -> miesmuschel::Filtor -> FiltorNull
new()Initialize the FiltorNull object.
FiltorNull$new()
clone()The objects of this class are cloneable with this method.
FiltorNull$clone(deep = FALSE)
deepWhether to make a deep clone.
Other filtors:
Filtor,
FiltorSurrogate,
dict_filtors_maybe,
dict_filtors_proxy,
dict_filtors_surprog,
dict_filtors_surtour
fn = ftr("null")
p = ps(x = p_dbl(-5, 5))
known_data = data.frame(x = as.numeric(1:5))
fitnesses = as.numeric(1:5)
new_data = data.frame(x = c(2.5, 4.5))
fn$prime(p)
fn$needed_input(1)
fn$operate(new_data, known_data, fitnesses, 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.