API Reference‎ > ‎


template<class Tstruct neuron_t
This template class represents a neuron of a neural network neuron layer



  • nu

Public Attributes

  • vector_t < T > weights;
    Neuron weights

  • vector_t < T > delta_weights;
    Amount by which weights will change

  • T bias T(0);
    Neuron bias

  • T output T(0);
    Neuron output

  • T error T(0);
    Error field used by learning algorithm

String Stream Operators

  • friend std::stringstreamoperator>>(std::stringstream& ss, neuon_t& n) noexcept;
    Load and reinitialize the neuron by using data of the given string stream
  • friend std::stringstreamoperator<<(std::stringstream& ss, neuron_t& n) noexcept;
    Save neuron status into the given string stream

Public methods

  • void resize(size_t sizeNU_NOEXCEPT;
    size_t size: [in] new vector size
    Resize both the weights and delta_weights vectors