class documentation

return a rotated version of a function for testing purpose.

This class is a convenience shortcut for the litte more verbose composition of a function with a rotation:

>>> import cma
>>> from cma import fitness_transformations as ft
>>> f1 = ft.Rotated(cma.ff.elli)
>>> f2 = ft.ComposedFunction([cma.ff.elli, ft.Rotation()])
>>> assert f1([2]) == f2([2])  # same rotation only in 1-D
>>> assert f1([1, 2]) != f2([1, 2])
Method __init__ optional argument rotate(x) must return a (stable) rotation 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, rotate=None, seed=None):

optional argument rotate(x) must return a (stable) rotation of x.