tesseract
3.05.02
|
#include <neuron.h>
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 |
Neuron * | fan_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 [] |
Enumerator | |
---|---|
Unknown | |
Input | |
Hidden | |
Output |
tesseract::Neuron::Neuron | ( | ) |
Definition at line 26 of file neuron.cpp.
tesseract::Neuron::~Neuron | ( | ) |
Definition at line 31 of file neuron.cpp.
void tesseract::Neuron::AddFromConnection | ( | Neuron * | neuron_vec, |
float * | wts_offset, | ||
int | from_cnt | ||
) |
Definition at line 83 of file neuron.cpp.
|
inline |
|
inline |
void tesseract::Neuron::FeedForward | ( | ) |
Definition at line 48 of file neuron.cpp.
|
inline |
|
protected |
Definition at line 35 of file neuron.cpp.
|
inline |
|
inline |
|
inline |
Definition at line 51 of file neuron.h.
void tesseract::Neuron::set_node_type | ( | NeuronTypes | type | ) |
Definition at line 71 of file neuron.cpp.
|
inline |
|
static |
Definition at line 94 of file neuron.cpp.
|
protected |
|
staticprotected |
|
protected |