From 8f1b4e0962857d402f9d017fcbf387ef0eceb7c4 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Thu, 01 Sep 2016 23:48:41 +0000
Subject: [PATCH] updates and things

---
 src/utils.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/utils.h b/src/utils.h
index 7e49818..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);
@@ -36,16 +37,19 @@
 void translate_array(float *a, int n, float s);
 int max_index(float *a, int n);
 float constrain(float min, float max, float a);
+int constrain_int(int a, int min, int max);
 float mse_array(float *a, int n);
 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);
 void mean_arrays(float **a, int n, int els, float *avg);
 float variance_array(float *a, int n);
 float mag_array(float *a, int n);
+float dist_array(float *a, float *b, int n, int sub);
 float **one_hot_encode(float *a, int n, int k);
 float sec(clock_t clocks);
 int find_int_arg(int argc, char **argv, char *arg, int def);

--
Gitblit v1.10.0