diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2017-11-02 23:00:48 -0400 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2017-11-02 23:00:48 -0400 |
commit | f3d53bac095fd47f7c10f54007ffa11ab0f1ac1f (patch) | |
tree | f940e6255b77a76051b4464db9972f400fc89699 /lib/convex.h | |
parent | 30534606d5690e176d168f640f55162fa15f0a19 (diff) | |
download | c++-f3d53bac095fd47f7c10f54007ffa11ab0f1ac1f.tar.gz c++-f3d53bac095fd47f7c10f54007ffa11ab0f1ac1f.tar.bz2 c++-f3d53bac095fd47f7c10f54007ffa11ab0f1ac1f.zip |
added new method for computing autocorrelation
Diffstat (limited to 'lib/convex.h')
-rw-r--r-- | lib/convex.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/convex.h b/lib/convex.h new file mode 100644 index 0000000..29f4ae0 --- /dev/null +++ b/lib/convex.h @@ -0,0 +1,21 @@ + +#pragma once + +#include <inttypes.h> +#include <stdbool.h> +#include <stdlib.h> +#include <string.h> + +typedef struct { + uint64_t x; + double y; +} point_t; + +typedef struct list_tag { + struct list_tag *prev; + struct list_tag *next; + point_t *p; +} list_t; + +double *get_convex_minorant(uint64_t n, double *Gammas); + |