15 for (
size_t i = 0; i < n->
size; ++i)
26 if (n == NULL || n->
f_act == NULL || n->
f_act_de == NULL)
return 0;
28 for (
size_t i = 0; i < n->
size; ++i)
38 for (
size_t i = 0; i < l->
size; ++i)
49 for(
size_t i = 0; i < l->
size; ++i)
56 if (net == NULL)
return;
58 for(
size_t i = 0; i < net->
size; ++i)
66 if (net == NULL)
return NULL;
68 if (
output == NULL)
return NULL;
struct PCFNN_LAYER * inputl
void PCFNN_LAYER_feedforward(struct PCFNN_LAYER *l)
Feedforward the hidden layer l.
struct PCFNN_LAYER ** layers
struct PCFNN_LAYER * outputl
struct PCFNN_NEURON ** inputs
double(* f_act_de)(double)
double * PCFNN_NETWORK_get_output(struct PCFNN_NETWORK *net)
Return a double array which is the output of the output layer of net.
void PCFNN_NETWORK_feedforward(struct PCFNN_NETWORK *net, double *inputs)
Feedforward the PCFNN_NETWORK net.
void PCFNN_LAYER_feedforward_input(struct PCFNN_LAYER *l, double *inputs)
Feedforward the input layer l.
struct PCFNN_NEURON ** neurons
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.
double PCFNN_NEURON_feedforward(struct PCFNN_NEURON *n, double(*f_act)(double), double(*f_act_de)(double))
Feedforward the input neuron n.
enum PCFNN_LAYER_TYPE type