Cluster functions
[C Interface]

Collaboration diagram for Cluster functions:


Modules

 Simple Cluster
 Biased Cluster
 Fake Cluster

Functions

C_NNFW_API NnfwCluster * NnfwClusterCreate (const char *type, unsigned int numNeurons)
C_NNFW_API void NnfwClusterUpdate (NnfwCluster *)
C_NNFW_API unsigned int NnfwClusterNumNeurons (NnfwCluster *)
C_NNFW_API void NnfwClusterSetAccumulate (NnfwCluster *, int accumulate)
C_NNFW_API int NnfwClusterIsAccumulate (NnfwCluster *)
C_NNFW_API void NnfwClusterRandomize (NnfwCluster *, Real min, Real max)
C_NNFW_API void NnfwClusterSetInputs (NnfwCluster *, Real *ins)
C_NNFW_API void NnfwClusterSetInput (NnfwCluster *, unsigned int neuron, Real value)
C_NNFW_API RealNnfwClusterInputs (NnfwCluster *)
C_NNFW_API NnfwCluster * NnfwClusterClone (NnfwCluster *)

Function Documentation

C_NNFW_API NnfwCluster* NnfwClusterClone ( NnfwCluster *   ) 

Clone this Cluster

C_NNFW_API NnfwCluster* NnfwClusterCreate ( const char *  type,
unsigned int  numNeurons 
)

Create a Cluster with type specified

C_NNFW_API Real* NnfwClusterInputs ( NnfwCluster *   ) 

Return a pointer to an array of NnfwClusteNumNeurons Real containing the current inputs values

C_NNFW_API int NnfwClusterIsAccumulate ( NnfwCluster *   ) 

Return 1 if accumulate is enabled, 0 otherwise

C_NNFW_API unsigned int NnfwClusterNumNeurons ( NnfwCluster *   ) 

Return the number of Neurons in the Cluster

C_NNFW_API void NnfwClusterRandomize ( NnfwCluster *  ,
Real  min,
Real  max 
)

Randomize the parameters of Cluster within min and max values specified

C_NNFW_API void NnfwClusterSetAccumulate ( NnfwCluster *  ,
int  accumulate 
)

Set Accumulate mode

Parameters:
accumulate if 0 disable accumulate mode, otherwise enable it

C_NNFW_API void NnfwClusterSetInput ( NnfwCluster *  ,
unsigned int  neuron,
Real  value 
)

Set a single input of Cluster

Parameters:
neuron index of neuron of which to setup the input
value the value of input

C_NNFW_API void NnfwClusterSetInputs ( NnfwCluster *  ,
Real ins 
)

Configure the inputs of the Cluster

Parameters:
ins is an array of at least NnfwClusterNumNeurons containing the inputs values

C_NNFW_API void NnfwClusterUpdate ( NnfwCluster *   ) 

update the outputs of neurons

BerliOS Developer Logo Valid XHTML 1.0 Transitional Valid CSS!