From 153705226d8ca746478b69eeac9bc854766daa11 Mon Sep 17 00:00:00 2001 From: Joseph Redmon <pjreddie@gmail.com> Date: Tue, 27 Jan 2015 21:31:06 +0000 Subject: [PATCH] Bias updates bug fix --- src/utils.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/utils.h b/src/utils.h index 5ddc538..b1a0587 100644 --- a/src/utils.h +++ b/src/utils.h @@ -5,7 +5,7 @@ #include "list.h" 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,6 +22,7 @@ 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); -- Gitblit v1.10.0