?
Joseph Redmon
2015-05-25 c521f87c9eb3ee70258f315ad0d72d7cf174e8b7
src/utils.h
@@ -4,6 +4,7 @@
#include <time.h>
#include "list.h"
char *basecfg(char *cfgfile);
int alphanum_to_int(char c);
char int_to_alphanum(int i);
void read_all(int fd, char *buffer, size_t bytes);
@@ -25,7 +26,7 @@
void scale_array(float *a, int n, float s);
void translate_array(float *a, int n, float s);
int max_index(float *a, int n);
float constrain(float a, float max);
float constrain(float min, float max, float a);
float mse_array(float *a, int n);
float rand_normal();
float rand_uniform();
@@ -35,5 +36,9 @@
float mag_array(float *a, int n);
float **one_hot_encode(float *a, int n, int k);
float sec(clock_t clocks);
typedef struct{
    float x, y, w, h;
} box;
#endif