This class will create the neuron connection template. More...
#include <CINNIC/contourNeuron.H>
Public Member Functions | |
float | FindRatio (TC2 &XMax, TC2 &X) |
find the ratio of XMax to X from 0 to 1 | |
float | FindDistance (TC2 &PiX, TC2 &PiY) |
find the length from center to coord X,Y | |
void | FindCenter () |
Calculate the where the center pixel is. | |
void | FindReach () |
calculate the reach of excitation or inhabition | |
float | FindAngleToRad (TC2 &X, TC2 &Y) |
find the angle to X,Y from the Center | |
float | FindRadToDeg (TC2 &r) |
Transform angle from radians to degrees. | |
float | FindLinear (TC2 &m, TC2 &n, TC2 &o, TC2 &x, TC2 &b) |
Convert along linear function y=mx+b. | |
float | sigmoid (TC2 &beta, TC2 &v) |
common sigmoidal function | |
PropHold | GetCompleteNeuron () |
Return the completed neuron. | |
void | CreateNeuron (readConfig &config) |
Create the neuron using config file parameters. | |
Public Attributes | |
PropHold | FourDNeuralMap [AnglesUsed][AnglesUsed][XSize+1][YSize+1] |
create the 4D neuron map, return that map |
This class will create the neuron connection template.
This class creates the 4D neuron template. It processes the excitation and inhabition each neuron should have to another neuron given the property of the two neurons. The result is a set of weights. The weight for each hyperpixel is held in PropHold. The entire set is held in a 4D array called FourDNeuralMap.
Definition at line 123 of file contourNeuron.H.
void ContourNeuronCreate< TC2 >::CreateNeuron | ( | readConfig & | config | ) | [inline] |
Create the neuron using config file parameters.
&config | This is the config file object contaning parameters |
Definition at line 195 of file contourNeuron.C.
References PropHold::ang, PropHold::ang2, PropHold::ang3, PropHold::angAB, PropHold::angABD, PropHold::coLinear, PropHold::dis, PropHold::Edis, ContourNeuronCreate< TC2 >::FindAngleToRad(), ContourNeuronCreate< TC2 >::FindCenter(), ContourNeuronCreate< TC2 >::FindDistance(), ContourNeuronCreate< TC2 >::FindLinear(), ContourNeuronCreate< TC2 >::FindRadToDeg(), ContourNeuronCreate< TC2 >::FindRatio(), ContourNeuronCreate< TC2 >::FindReach(), ContourNeuronCreate< TC2 >::FourDNeuralMap, readConfig::getItemValueF(), NeuralAngles, PropHold::Odis, PropHold::orth, PropHold::pol, PropHold::Sdis, PropHold::sender, and PropHold::zero.
Referenced by main().
float ContourNeuronCreate< TC2 >::FindAngleToRad | ( | TC2 & | X, | |
TC2 & | Y | |||
) | [inline] |
find the angle to X,Y from the Center
Definition at line 102 of file contourNeuron.C.
Referenced by ContourNeuronCreate< TC2 >::CreateNeuron().
void ContourNeuronCreate< TC2 >::FindCenter | ( | ) | [inline] |
Calculate the where the center pixel is.
Definition at line 85 of file contourNeuron.C.
Referenced by ContourNeuronCreate< TC2 >::CreateNeuron().
float ContourNeuronCreate< TC2 >::FindDistance | ( | TC2 & | PiX, | |
TC2 & | PiY | |||
) | [inline] |
find the length from center to coord X,Y
Definition at line 76 of file contourNeuron.C.
References sqrt().
Referenced by ContourNeuronCreate< TC2 >::CreateNeuron().
float ContourNeuronCreate< TC2 >::FindLinear | ( | TC2 & | m, | |
TC2 & | n, | |||
TC2 & | o, | |||
TC2 & | x, | |||
TC2 & | b | |||
) | [inline] |
Convert along linear function y=mx+b.
Definition at line 167 of file contourNeuron.C.
Referenced by ContourNeuronCreate< TC2 >::CreateNeuron().
float ContourNeuronCreate< TC2 >::FindRadToDeg | ( | TC2 & | r | ) | [inline] |
Transform angle from radians to degrees.
Definition at line 159 of file contourNeuron.C.
Referenced by ContourNeuronCreate< TC2 >::CreateNeuron().
float ContourNeuronCreate< TC2 >::FindRatio | ( | TC2 & | XMax, | |
TC2 & | X | |||
) | [inline] |
find the ratio of XMax to X from 0 to 1
Definition at line 68 of file contourNeuron.C.
Referenced by ContourNeuronCreate< TC2 >::CreateNeuron().
void ContourNeuronCreate< TC2 >::FindReach | ( | ) | [inline] |
calculate the reach of excitation or inhabition
Definition at line 92 of file contourNeuron.C.
Referenced by ContourNeuronCreate< TC2 >::CreateNeuron().
PropHold ContourNeuronCreate< TC2 >::GetCompleteNeuron | ( | ) |
Return the completed neuron.
float ContourNeuronCreate< TC2 >::sigmoid | ( | TC2 & | beta, | |
TC2 & | v | |||
) | [inline] |
common sigmoidal function
Definition at line 173 of file contourNeuron.C.
PropHold ContourNeuronCreate< TC2 >::FourDNeuralMap[AnglesUsed][AnglesUsed][XSize+1][YSize+1] |
create the 4D neuron map, return that map
Definition at line 138 of file contourNeuron.H.
Referenced by CINNIC::convolveTest(), ContourNeuronCreate< TC2 >::CreateNeuron(), main(), and CINNIC::viewNeuronTemplate().