#include <stdlib.h>
#include "ANN/models/PCFNN/neuron.h"
Go to the source code of this file.
◆ PCFNN_NEURON_addinputs()
void PCFNN_NEURON_addinputs |
( |
struct PCFNN_NEURON * |
n, |
|
|
size_t |
inputs |
|
) |
| |
Increase the input size of the PCFNN_NEURON.
- Parameters
-
[in] | n | (struct PCFNN_NEURON*) a pointer an a PCFNN_NEURON |
[in] | inputs | (size_t) number of input to add. if 0 do nothing. |
Definition at line 41 of file neuron.c.
◆ PCFNN_NEURON_build()
◆ PCFNN_NEURON_clear()
◆ PCFNN_NEURON_clone()
Copy the input size, initialisation function and activation function from n and create a new PCFNN_NEURON.
- Parameters
-
- Returns
- (struct PCFNN_NEURON*) the new neuron or NULL if an error occured
Definition at line 70 of file neuron.c.
◆ PCFNN_NEURON_clone_all()
Copy all data from n and create a new PCFNN_NEURON.
- Parameters
-
- Returns
- (struct PCFNN_NEURON*) the new neuron or NULL if an error occured
Definition at line 77 of file neuron.c.
◆ PCFNN_NEURON_free()
◆ PCFNN_NEURON_get_ram_usage()
size_t PCFNN_NEURON_get_ram_usage |
( |
struct PCFNN_NEURON * |
n | ) |
|
Give the number of bytes used by the PCFNN_NEURON n.
- Parameters
-
- Returns
- (size_t) number of bytes
Definition at line 60 of file neuron.c.
◆ PCFNN_NEURON_new()
struct PCFNN_NEURON* PCFNN_NEURON_new |
( |
size_t |
size, |
|
|
double(*)() |
f_init, |
|
|
double(*)(double) |
f_act, |
|
|
double(*)(double) |
f_act_de |
|
) |
| |
Initialize a PCFNN_NEURON.
- Parameters
-
[in] | size | (size_t) input size |
[in] | f_init | (double(*f_init)()) a pointer on an weights/bias initialisation functon or NULL |
[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
- PCFNN_NEURON structure pointer or NULL if an error occured
Definition at line 6 of file neuron.c.
◆ PCFNN_NEURON_set_state_lock()
Set lock state of the neuron n.
- Parameters
-
[in] | n | (struct PCFNN_NEURON*) a pointer an a PCFNN_NEURON |
[in] | state | (enum PCFNN_NEURON_LOCK_STATE) lock state |
Definition at line 97 of file neuron.c.
◆ PCFNN_NEURON_summary()
void PCFNN_NEURON_summary |
( |
struct PCFNN_NEURON * |
n, |
|
|
size_t |
param[2] |
|
) |
| |
Write on param the number of unlocked parameters and locked parameters.
- Parameters
-
[in] | n | (struct PCFNN_NEURON*) a pointer an a PCFNN_NEURON |
[out] | param | (size_t) param[0] will be the number of unlocked parameters and param[1] the number of locked parameters |
Definition at line 103 of file neuron.c.