From 5b0166bf88bf3bf3ec1e122f023df3887befba90 Mon Sep 17 00:00:00 2001 From: Joseph Redmon <pjreddie@gmail.com> Date: Fri, 10 Jul 2015 23:37:31 +0000 Subject: [PATCH] small changes --- src/utils.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/utils.h b/src/utils.h index 4c6b2a9..7148e54 100644 --- a/src/utils.h +++ b/src/utils.h @@ -26,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(); @@ -36,5 +36,6 @@ float mag_array(float *a, int n); float **one_hot_encode(float *a, int n, int k); float sec(clock_t clocks); + #endif -- Gitblit v1.10.0