diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2011-10-20 04:37:06 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2011-10-20 04:37:06 +0000 |
commit | 9ed18c7064226e1edc06f5a51fd569083971d448 (patch) | |
tree | 1069dc91e062bd557c61e43cbdac5d611a42a018 /chaos.h | |
parent | 56e77e8ed1b5dba873991b114d55cb1d399d47f5 (diff) |
ported chaos to the Library Template, now with libchaos support
svn path=/trunk/externals/bbogart/chaos/; revision=15625
Diffstat (limited to 'chaos.h')
-rw-r--r-- | chaos.h | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -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); |