SuperNN  1.0.0
Public Member Functions | List of all members
SuperNN::Layer Struct Reference

Array of neurons. More...

Inheritance diagram for SuperNN::Layer:
Inheritance graph
[legend]

Public Member Functions

 Layer ()
 
virtual ~Layer ()
 
void add_neuron (Neuron &n)
 Adds a neuron to the layer. More...
 
void add_neurons (unsigned n_neurons, bool bias=false)
 Adds a number of neurons to the layer. More...
 
void connect (unsigned to_layer, unsigned to_neuron)
 Connects all the neurons of the layer to a neuron. More...
 
void set_activation (ActFuncType type, double s=1)
 Sets the activation function for all the neurons currently in the layer. More...
 

Detailed Description

Array of neurons.

Neurons are only permitted to have connections to latter layers.

Definition at line 36 of file network.hpp.

Constructor & Destructor Documentation

SuperNN::Layer::Layer ( )

Definition at line 30 of file network.cpp.

SuperNN::Layer::~Layer ( )
virtual

Definition at line 34 of file network.cpp.

Member Function Documentation

void SuperNN::Layer::add_neuron ( Neuron n)

Adds a neuron to the layer.

Parameters
nNeuron to be added

Definition at line 38 of file network.cpp.

void SuperNN::Layer::add_neurons ( unsigned  n_neurons,
bool  bias = false 
)

Adds a number of neurons to the layer.

Parameters
n_neuronsNumber of neurons to add
biasTrue to add bias neurons, false otherwise

Definition at line 43 of file network.cpp.

void SuperNN::Layer::connect ( unsigned  to_layer,
unsigned  to_neuron 
)

Connects all the neurons of the layer to a neuron.

Parameters
to_layerLayer where the target neuron is located
to_neuronPosition of the target neuron in it's layer

Definition at line 60 of file network.cpp.

void SuperNN::Layer::set_activation ( ActFuncType  type,
double  s = 1 
)

Sets the activation function for all the neurons currently in the layer.

Parameters
typeActivation function type
sActivation function steepness

Definition at line 54 of file network.cpp.