[math] Adding sigmoid and softmax functions

This commit is contained in:
Al
2015-08-31 20:27:58 -04:00
parent a090a22bca
commit bb50c7ea2c
2 changed files with 50 additions and 0 deletions

14
src/logistic.h Normal file
View File

@@ -0,0 +1,14 @@
#ifndef LOGISTIC_H
#define LOGISTIC_H
#include <stdlib.h>
#include <stdint.h>
#include "matrix.h"
double sigmoid(double x);
void sigmoid_vector(double *x, size_t n);
void softmax_vector(double *x, size_t n);
void softmax_matrix(matrix_t *matrix);
#endif