int GetState()
Get neuron state.
UINT m_nNumEdges
Number of edges.
void SetOutput(bool b)
Set neuron output.
bool GetOutput()
Get neuron output.
CRandom m_cRandom
Random number generator.
Neuron in a Hopfield network.
Header for CNeuralNet and its edges CNeuron.
int m_nState
Neuron state.
std::vector< CEdge * > m_vEdgeList
Edge list.
unsigned int UINT
Abbreviation for unsigned integer.
void InsertAdjacency(CEdge *pEdge)
Add an edge to the edge list.
CNeuron(CVertex *p0, CVertex *p1, UINT index)
Constructor.
void SetState(int n)
Get neuron state.
bool IsStable()
Stability test.
CNeuralNet(UINT n, int seed)
Constructor.
UINT m_nNumVerts
Number of vertices.
void srand()
Seed the random number generator.
void InsertNeuron(UINT i, UINT j)
Insert a neuron.
int m_bOutput
Neuron output.
int m_nOldState
Old neuron state.
CVertex * m_pVertexList
Vertex list.