Inheritance diagram for PoolFunction:


Constructors | |
| PoolFunction (const OutputFunction &prototype, u_int dim) | |
| PoolFunction (PropertySettings &prop) | |
| PoolFunction (u_int dim=1) | |
Interface | |
| OutputFunction * | getOutputFunction (u_int i) |
| void | setOutputFunction (u_int i, const OutputFunction &prototype) |
| Variant | getOutputFunctionV (u_int i) |
| bool | setOutputFunction (u_int i, const Variant &prototype) |
| unsigned int | size () |
| Variant | sizeV () |
| virtual void | apply (RealVec &inputs, RealVec &outputs) |
| virtual PoolFunction * | clone () const |
| virtual void | setCluster (Cluster *) |
| Properties | ||||
| Name | Type [isVector] | Access mode | Description | Class |
|---|---|---|---|---|
| typename | string | read-only | Class's type | Propertized |
| size | unsigned int | read-only | this's dimesion | this |
| functions | OutputFunction [V] | read/write | OutputFunction vector | this |
| PoolFunction | ( | const OutputFunction & | prototype, | |
| u_int | dim | |||
| ) |
Construct a PoolFunction contains dim elements all equal to prototype passed
| PoolFunction | ( | PropertySettings & | prop | ) |
Construct
| PoolFunction | ( | u_int | dim = 1 |
) |
Construct a PoolFunction with dimension dim, but with unintialized OutputFunction
| ~PoolFunction | ( | ) |
Destructor.
| OutputFunction* getOutputFunction | ( | u_int | i | ) |
Return the i-th OutputFunction setted
| void setOutputFunction | ( | u_int | i, | |
| const OutputFunction & | prototype | |||
| ) |
Set the i-th element of this Pool to a OutputFunction of type prototype
Return the i-th OutputFunction setted (Variant version)
Set the i-th element (Variant version)
| unsigned int size | ( | ) |
Return the dimension
Implement the updating method
Apply OutputFunctions setted by setOutputFunction to elements of RealVec inputs
Reimplemented from OutputFunction.
| virtual PoolFunction* clone | ( | ) | const [virtual] |
Clone this object
Reimplemented from OutputFunction.
| virtual void setCluster | ( | Cluster * | ) | [virtual] |
when it's inserted into a Cluster, it will be resized to fit the size of Cluster
Reimplemented from OutputFunction.