aboutsummaryrefslogtreecommitdiff
path: root/lyapunov.h
diff options
context:
space:
mode:
authorB. Bogart <bbogart@users.sourceforge.net>2003-09-30 16:06:46 +0000
committerB. Bogart <bbogart@users.sourceforge.net>2003-09-30 16:06:46 +0000
commitf9920590bc711f8a6aee5d71348c8ef6b42bed70 (patch)
treef0c9bb789128d610e54151acc2045ed4e26106ee /lyapunov.h
parent705f8dee50e2073a3aba60b03e5c9b86672abd4c (diff)
again, I missed a few. This should now be complete!
svn path=/trunk/externals/bbogart/chaos/; revision=1053
Diffstat (limited to 'lyapunov.h')
-rw-r--r--lyapunov.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/lyapunov.h b/lyapunov.h
new file mode 100644
index 0000000..d6b71f5
--- /dev/null
+++ b/lyapunov.h
@@ -0,0 +1,25 @@
+/*
+ a test file for lyapunov.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);