dict_filtors_null {miesmuschel} | R Documentation |
Null-Filtor
Description
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.
Configuration Parameters
This operator has no configuration parameters.
Supported Operand Types
Supported Domain
classes are: p_lgl
('ParamLgl'), p_int
('ParamInt'), p_dbl
('ParamDbl'), p_fct
('ParamFct')
Dictionary
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")
Super classes
miesmuschel::MiesOperator
-> miesmuschel::Filtor
-> FiltorNull
Methods
Public methods
Inherited methods
Method new()
Initialize the FiltorNull
object.
Usage
FiltorNull$new()
Method clone()
The objects of this class are cloneable with this method.
Usage
FiltorNull$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.
See Also
Other filtors:
Filtor
,
FiltorSurrogate
,
dict_filtors_maybe
,
dict_filtors_proxy
,
dict_filtors_surprog
,
dict_filtors_surtour
Examples
fn = ftr("null")
p = ps(x = p_dbl(-5, 5))
known_data = data.frame(x = 1:5)
fitnesses = 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)