tesseract::Neuron Class Reference

#include <neuron.h>

List of all members.

Public Types

enum  NeuronTypes { Unknown = 0, Input, Hidden, Output }

Public Member Functions

 Neuron ()
 ~Neuron ()
void Clear ()
template<class BuffType >
bool ReadBinary (BuffType *input_buff)
void AddFromConnection (Neuron *neuron_vec, float *wts_offset, int from_cnt)
void set_node_type (NeuronTypes type)
void FeedForward ()
float output () const
void set_output (float out_val)
int id () const
int fan_in_cnt () const
Neuronfan_in (int idx) const
float fan_in_wts (int idx) const
void set_id (int id)
float bias () const
Neuron::NeuronTypes node_type () const

Static Public Member Functions

static float Sigmoid (float activation)

Protected Member Functions

void Init ()

Protected Attributes

NeuronTypes node_type_
int id_
float bias_
float activation_
float output_
vector< Neuron * > fan_in_
vector< float * > fan_in_weights_
bool frwd_dirty_

Static Protected Attributes

static const float kSigmoidTable []

Member Enumeration Documentation

Enumerator:
Unknown 
Input 
Hidden 
Output 

Constructor & Destructor Documentation

tesseract::Neuron::Neuron (  ) 
tesseract::Neuron::~Neuron (  ) 

Member Function Documentation

void tesseract::Neuron::AddFromConnection ( Neuron neuron_vec,
float *  wts_offset,
int  from_cnt 
)
float tesseract::Neuron::bias (  )  const [inline]
void tesseract::Neuron::Clear (  )  [inline]
Neuron* tesseract::Neuron::fan_in ( int  idx  )  const [inline]
int tesseract::Neuron::fan_in_cnt (  )  const [inline]
float tesseract::Neuron::fan_in_wts ( int  idx  )  const [inline]
void tesseract::Neuron::FeedForward (  ) 
int tesseract::Neuron::id (  )  const [inline]
void tesseract::Neuron::Init (  )  [protected]
Neuron::NeuronTypes tesseract::Neuron::node_type (  )  const [inline]
float tesseract::Neuron::output (  )  const [inline]
template<class BuffType >
bool tesseract::Neuron::ReadBinary ( BuffType *  input_buff  )  [inline]
void tesseract::Neuron::set_id ( int  id  )  [inline]
void tesseract::Neuron::set_node_type ( NeuronTypes  type  ) 
void tesseract::Neuron::set_output ( float  out_val  )  [inline]
float tesseract::Neuron::Sigmoid ( float  activation  )  [static]

Member Data Documentation

float tesseract::Neuron::activation_ [protected]
float tesseract::Neuron::bias_ [protected]
vector<Neuron *> tesseract::Neuron::fan_in_ [protected]
vector<float *> tesseract::Neuron::fan_in_weights_ [protected]
int tesseract::Neuron::id_ [protected]
const float tesseract::Neuron::kSigmoidTable [static, protected]
float tesseract::Neuron::output_ [protected]

The documentation for this class was generated from the following files:
Generated on Thu Feb 2 08:19:27 2012 for Tesseract by  doxygen 1.6.3