class documentation

compose a function with a shift in x-space.

>>> import cma
>>> f = cma.s.ft.Shifted(cma.ff.elli)

Details: this class solely provides as default second argument to ComposedFunction, namely a random shift in search space. shift=lambda x: x would provide "no shift", None expands to cma.transformations.ConstRandnShift().

Method __init__ shift(x) must return a (stable) shift of x

Inherited from ComposedFunction:

Method __call__ Undocumented
Method inverse evaluate the composition of inverses on x.
Instance Variable list_of_inverses Undocumented

Inherited from Function (via ComposedFunction):

Method initialize initialization of Function
Instance Variable evaluations Undocumented
Instance Variable ftarget Undocumented
Instance Variable target_hit_at Undocumented
Property function_names_to_evaluate_first_found attributes which are searched for to be called if no function was given to __init__.
Class Variable _function_names_to_evaluate_first_found Undocumented
Instance Variable __callable Undocumented
Instance Variable __initialized Undocumented
def __init__(self, f, shift=None):

shift(x) must return a (stable) shift of x