Package topo :: Package base :: Module functionfamilies :: Class IdentityOF
[hide private]
[frames] | no frames]

Class IdentityOF

source code

                             object --+        
                                      |        
parameterizedobject.ParameterizedObject --+    
                                          |    
                                   OutputFn --+
                                              |
                                             IdentityOF

Identity function, returning its argument as-is.

For speed, calling this function object is sometimes optimized away entirely. To make this feasible, it is not allowable to derive other classes from this object, modify it to have different behavior, add side effects, or anything of that nature.



Nested Classes [hide private]

Inherited from parameterizedobject.ParameterizedObject: __metaclass__

Instance Methods [hide private]
 
__call__(self, x, sum=None) source code

Inherited from OutputFn: __add__

Inherited from parameterizedobject.ParameterizedObject: __getstate__, __init__, __repr__, __setstate__, __str__, as_uninitialized, debug, defaults, force_new_dynamic_value, get_param_values, get_value_generator, inspect_value, message, print_param_values, script_repr, verbose, warning

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Class Methods [hide private]

Inherited from parameterizedobject.ParameterizedObject: params, print_param_defaults

Class Variables [hide private]
  __params = {'name': <topo.base.parameterizedobject.Parameter o...
dict() -> new empty dictionary.

Inherited from OutputFn: norm_value

Inherited from parameterizedobject.ParameterizedObject: name, print_level

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__call__(self, x, sum=None)
(Call operator)

source code 
Overrides: OutputFn.__call__

Class Variable Details [hide private]

__params

dict() -> new empty dictionary.
dict(mapping) -> new dictionary initialized from a mapping object's
    (key, value) pairs.
dict(seq) -> new dictionary initialized as if via:
    d = {}
    for k, v in seq:
        d[k] = v
dict(**kwargs) -> new dictionary initialized with the name=value pairs
    in the keyword argument list.  For example:  dict(one=1, two=2)

Value:
{'name': <topo.base.parameterizedobject.Parameter object at 0x98cb02c>,
 'norm_value': <topo.base.parameterizedobject.Parameter object at 0x9d78fb4>,
 'print_level': <topo.base.parameterizedobject.Parameter object at 0x98cb064>}