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 |
Undocumented |
Inherited from Function
(via ComposedFunction
):
Method | initialize |
initialization of Function |
Instance Variable | evaluations |
Undocumented |
Instance Variable | ftarget |
Undocumented |
Instance Variable | target |
Undocumented |
Property | function |
attributes which are searched for to be called if no function was given to __init__ . |
Class Variable | _function |
Undocumented |
Instance Variable | __callable |
Undocumented |
Instance Variable | __initialized |
Undocumented |