TarzaNN
TarzaNN neural network simulator
|
#include <Neuron.h>
Public Member Functions | |
Neuron () | |
virtual void | nonlinearity (Matrix *totalActivation, Matrix *workOutput, Matrix *spatialBias, float featureBias) |
virtual double | nonlinearityDerivative (double S) |
virtual void | setFeaturePlane (FeaturePlaneAbstract *fp) |
bool | addActivation (int count) |
float | getMaxActivation () |
Static Public Member Functions | |
static int | getType (const QString &name) |
static QString | getType (int value) |
static void | setNeuronParams (paramMap ¶ms, int neuronType, float nParam1, float nParam2) |
Set neuron-specific parameters. | |
Protected Member Functions | |
void | processBiases (Matrix *workOutput, Matrix *spatialBias, float featureBias) |
Protected Attributes | |
FeaturePlaneAbstract * | theFeaturePlane |
float | max_activation |
float | range |
Generic neuron.
Neuron::Neuron | ( | ) |
bool Neuron::addActivation | ( | int | count | ) |
float Neuron::getMaxActivation | ( | ) |
int Neuron::getType | ( | const QString & | name | ) | [static] |
QString Neuron::getType | ( | int | value | ) | [static] |
void Neuron::nonlinearity | ( | Matrix * | totalActivation, |
Matrix * | workOutput, | ||
Matrix * | spatialBias, | ||
float | featureBias | ||
) | [virtual] |
Reimplemented in LinearSigmoidNeuron, SigmoidNeuron, TanHNeuron, and RungeKuttaNeuron.
double Neuron::nonlinearityDerivative | ( | double | S | ) | [virtual] |
Reimplemented in LinearSigmoidNeuron, TanHNeuron, and RungeKuttaNeuron.
void Neuron::processBiases | ( | Matrix * | workOutput, |
Matrix * | spatialBias, | ||
float | featureBias | ||
) | [protected] |
virtual void Neuron::setFeaturePlane | ( | FeaturePlaneAbstract * | fp | ) | [inline, virtual] |
Reimplemented in RungeKuttaNeuron.
void Neuron::setNeuronParams | ( | paramMap & | params, |
int | neuronType, | ||
float | nParam1, | ||
float | nParam2 | ||
) | [static] |
Set neuron-specific parameters.
float Neuron::max_activation [protected] |
Max activation
float Neuron::range [protected] |
todo - document
FeaturePlaneAbstract* Neuron::theFeaturePlane [protected] |