BiasedCluster Class Reference

In this cluster a neuron have an input, an output and a bias value. More...

Inheritance diagram for BiasedCluster:

Inheritance graph
[legend]
Collaboration diagram for BiasedCluster:

Collaboration graph
[legend]
List of all members.

Constructors

 BiasedCluster (u_int numNeurons, const char *name="unnamed")
 BiasedCluster (PropertySettings &prop)
virtual ~BiasedCluster ()

Interface

void update ()
void setBias (u_int neuron, Real bias)
void setAllBiases (Real bias)
void setBiases (const RealVec &biases)
Real getBias (u_int neuron)
RealVecbiases ()
Variant getBiases ()
bool setBiases (const Variant &v)
void randomize (Real min, Real max)
virtual BiasedClusterclone () const

Detailed Description

Properties
Name Type [isVector] Access mode Description Class
typename string read-only Class's type Propertized
name string read/write name of the object Updatable
accumulate boolean read/write if inputs are accumulated Cluster
inputs RealVec read/write neuron's input Cluster
outfunction OutputFunction read/write neuron's output function Cluster
outputs RealVec read/write neuron's output Cluster
size unsigned int read-only number of neurons Cluster
biases RealVec read/write neuron's bias this


Constructor & Destructor Documentation

BiasedCluster ( u_int  numNeurons,
const char *  name = "unnamed" 
)

Construct a Cluster that contains numNeurons neuron

BiasedCluster ( PropertySettings prop  ) 

Construct by a PropertySettings

virtual ~BiasedCluster (  )  [virtual]

Destructor


Member Function Documentation

void update (  )  [virtual]

Update the outputs of neurons

Implements Updatable.

void setBias ( u_int  neuron,
Real  bias 
)

Set the bias of the neuron

void setAllBiases ( Real  bias  ) 

Set all biases with the same value

void setBiases ( const RealVec biases  ) 

Set the biases from the vector given

Real getBias ( u_int  neuron  ) 

Get bias of the neuron

RealVec& biases (  )  [inline]

Get the array of biases Return the array of biases, not a copy of biases; Then you can change biases by the pointer returned !!!

Variant getBiases (  )  [inline]

read property 'biases'

bool setBiases ( const Variant v  )  [inline]

set property 'biases'

void randomize ( Real  min,
Real  max 
) [virtual]

Randomize the biases of BiasedCluster

Implements Cluster.

virtual BiasedCluster* clone (  )  const [virtual]

Clone this BiasedCluster

Reimplemented from Cluster.


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