From 451ef0a0a6b595bb8e4a945633659b4d31f0a372 Mon Sep 17 00:00:00 2001 From: Joseph Redmon <pjreddie@gmail.com> Date: Mon, 20 Apr 2015 15:46:12 +0000 Subject: [PATCH] It's time, to du-du-du-du-DU-DU-DUEL!! https://www.youtube.com/watch?v=IVmtUK_1jh4 --- src/utils.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/utils.h b/src/utils.h index 4c6b2a9..578abc3 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(); -- Gitblit v1.10.0