From b8eb8b0a4016232c8da95c26501ac60ea9491901 Mon Sep 17 00:00:00 2001 From: Joseph Redmon <pjreddie@gmail.com> Date: Fri, 02 Sep 2016 00:26:12 +0000 Subject: [PATCH] Merge branch 'master' of github.com:pjreddie/darknet --- src/utils.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/utils.h b/src/utils.h index cba7f6f..3f0233a 100644 --- a/src/utils.h +++ b/src/utils.h @@ -5,6 +5,7 @@ #include "list.h" #define SECRET_NUM -1234 +#define TWO_PI 6.2831853071795864769252866 void shuffle(void *arr, size_t n, size_t size); void sorta_shuffle(void *arr, size_t n, size_t size, size_t sections); @@ -41,6 +42,7 @@ float rand_normal(); size_t rand_size_t(); float rand_uniform(float min, float max); +float rand_scale(float s); int rand_int(int min, int max); float sum_array(float *a, int n); float mean_array(float *a, int n); -- Gitblit v1.10.0