PoolFunction Class Reference

Pool of Functions. More...

Inheritance diagram for PoolFunction:

Inheritance graph
[legend]
Collaboration diagram for PoolFunction:

Collaboration graph
[legend]
List of all members.

Constructors

 PoolFunction (const OutputFunction &prototype, u_int dim)
 PoolFunction (PropertySettings &prop)
 PoolFunction (u_int dim=1)

Interface

OutputFunctiongetOutputFunction (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 PoolFunctionclone () const
virtual void setCluster (Cluster *)

Detailed Description

Further Details coming soon ;-)
Warnings
The dimension of PoolFunction must be at least one.
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


Constructor & Destructor Documentation

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.


Member Function Documentation

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

Variant getOutputFunctionV ( u_int  i  ) 

Return the i-th OutputFunction setted (Variant version)

bool setOutputFunction ( u_int  i,
const Variant prototype 
)

Set the i-th element (Variant version)

unsigned int size (  ) 

Return the dimension

Variant sizeV (  ) 

Return the dimension (Variant version)

virtual void apply ( RealVec inputs,
RealVec outputs 
) [virtual]

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.


The documentation for this class was generated from the following file:
BerliOS Developer Logo Valid XHTML 1.0 Transitional Valid CSS!