Joseph Redmon
2015-02-11 0f645836f193e75c4c3b718369e6fab15b5d19c5
src/utils.h
@@ -4,8 +4,10 @@
#include <time.h>
#include "list.h"
void read_all(int fd, char *buffer, size_t bytes);
void write_all(int fd, char *buffer, size_t bytes);
char *find_replace(char *str, char *orig, char *rep);
void error(char *s);
void error(const char *s);
void malloc_error();
void file_error(char *s);
void strip(char *s);
@@ -22,11 +24,13 @@
void translate_array(float *a, int n, float s);
int max_index(float *a, int n);
float constrain(float a, float max);
float mse_array(float *a, int n);
float rand_normal();
float rand_uniform();
float sum_array(float *a, int n);
float mean_array(float *a, int n);
float variance_array(float *a, int n);
float mag_array(float *a, int n);
float **one_hot_encode(float *a, int n, int k);
float sec(clock_t clocks);
#endif