From e92f7d301c971b4d27aa3dcd1e4047e94f04b3fc Mon Sep 17 00:00:00 2001 From: Joseph Redmon <pjreddie@gmail.com> Date: Wed, 25 Mar 2015 01:27:12 +0000 Subject: [PATCH] smaller gridsize in bias --- src/utils.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/utils.h b/src/utils.h index 7ae8a8d..578abc3 100644 --- a/src/utils.h +++ b/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(); -- Gitblit v1.10.0