From 9ed18c7064226e1edc06f5a51fd569083971d448 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 20 Oct 2011 04:37:06 +0000 Subject: ported chaos to the Library Template, now with libchaos support svn path=/trunk/externals/bbogart/chaos/; revision=15625 --- chaos.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 chaos.h (limited to 'chaos.h') diff --git a/chaos.h b/chaos.h new file mode 100644 index 0000000..0ed14d3 --- /dev/null +++ b/chaos.h @@ -0,0 +1,25 @@ +/* + a test file for chaos.h + */ + +#ifndef PD_VERSION +#include "m_pd.h" +#endif + +#define MAX_VARS 20 + +/* + * fractal - pointer to the object under test + * calc - the iteration function + * var_count - the number of variables for this fractal class + * vars - pointer to the fractal variables array + */ +double lyapunov(void *fractal, t_gotfn calc, int var_count, double *vars); + +/* + * CAUTION: ON FRACTALS WITH LOTS OF VARIABLES, THIS WILL TAKE A WHILE. + * This is an experimental function to test the ability of the function to + * calculate an accurate exponent by aberating each variable in the fractal. + * returns 'results' on completion. + */ +double *lyapunov_full(void *fractal, t_gotfn calc, int var_count, double *vars, double *results); -- cgit v1.2.1