ANN  0.1.1.5
A library containing multiple neural network models written in C
feedforward.h File Reference

PCFNN_FEEDFORWARD. More...

#include "../../config.h"
#include <stdlib.h>
#include "neuron.h"
#include "layer.h"
#include "network.h"
+ Include dependency graph for feedforward.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

double PCFNN_NEURON_feedforward_inputs (struct PCFNN_NEURON *n, double *inputs, double(*f_act)(double), double(*f_act_de)(double))
 Feedforward the input neuron n. More...
 
double PCFNN_NEURON_feedforward (struct PCFNN_NEURON *n, double(*f_act)(double), double(*f_act_de)(double))
 Feedforward the input neuron n. More...
 
void PCFNN_LAYER_feedforward_input (struct PCFNN_LAYER *l, double *inputs)
 Feedforward the input layer l. More...
 
void PCFNN_LAYER_feedforward (struct PCFNN_LAYER *l)
 Feedforward the hidden layer l. More...
 
void PCFNN_NETWORK_feedforward (struct PCFNN_NETWORK *net, double *inputs)
 Feedforward the PCFNN_NETWORK net. More...
 
double * PCFNN_NETWORK_get_output (struct PCFNN_NETWORK *net)
 Return a double array which is the output of the output layer of net. More...
 

Detailed Description

PCFNN_FEEDFORWARD.

Author
Cedric FARINAZZO
Version
0.1
Date
5 may 2019

Feedforward functions for PCFNN neural network

Definition in file feedforward.h.

Function Documentation

◆ PCFNN_LAYER_feedforward()

PCFNN_LAYER_feedforward ( struct PCFNN_LAYER l)

Feedforward the hidden layer l.

Parameters
[in]l(struct PCFNN_LAYER*) a pointer an a PCFNN_LAYER

Definition at line 46 of file feedforward.c.

+ Here is the call graph for this function:

◆ PCFNN_LAYER_feedforward_input()

PCFNN_LAYER_feedforward_input ( struct PCFNN_LAYER l,
double *  inputs 
)

Feedforward the input layer l.

Parameters
[in]l(struct PCFNN_LAYER*) a pointer an a PCFNN_LAYER
[in]inputs(double*) a double array to be used to populate the layer

Definition at line 35 of file feedforward.c.

◆ PCFNN_NETWORK_feedforward()

PCFNN_NETWORK_feedforward ( struct PCFNN_NETWORK net,
double *  inputs 
)

Feedforward the PCFNN_NETWORK net.

Parameters
[in]net(struct PCFNN_NETWORK*) a pointer an a PCFNN_NETWORK
[in]inputs(double*) a double array to be used to populate the input layer

Definition at line 54 of file feedforward.c.

+ Here is the call graph for this function:

◆ PCFNN_NETWORK_get_output()

PCFNN_NETWORK_get_output ( struct PCFNN_NETWORK net)

Return a double array which is the output of the output layer of net.

Parameters
[in]net(struct PCFNN_NETWORK*) a pointer an a PCFNN_NETWORK
Returns
a double array or NULL if an error occured

Definition at line 64 of file feedforward.c.

◆ PCFNN_NEURON_feedforward()

PCFNN_NEURON_feedforward ( struct PCFNN_NEURON n,
double(*)(double)  f_act,
double(*)(double)  f_act_de 
)

Feedforward the input neuron n.

Parameters
[in]n(struct PCFNN_LAYER*) a pointer an a PCFNN_LAYER
[in]f_act(double(*f_act)(double)) a pointer on activation functon or NULL
[in]f_act_de(double(*f_act_de)(double)) a pointer on derivative activation functon who is the derivate of the f_act function pointer or NULL
Returns
neuron output

Definition at line 22 of file feedforward.c.

◆ PCFNN_NEURON_feedforward_inputs()

PCFNN_NEURON_feedforward_inputs ( struct PCFNN_NEURON n,
double *  inputs,
double(*)(double)  f_act,
double(*)(double)  f_act_de 
)

Feedforward the input neuron n.

Parameters
[in]n(struct PCFNN_LAYER*) a pointer an a PCFNN_LAYER
[in]inputs(double*) a double array to be used to populate the neuron
[in]f_act(double(*f_act)(double)) a pointer on activation functon or NULL
[in]f_act_de(double(*f_act_de)(double)) a pointer on derivative activation functon who is the derivate of the f_act function pointer or NULL
Returns
neuron output

Definition at line 9 of file feedforward.c.