File: chaos.h

package info (click to toggle)
pd-chaos 0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 776 kB
  • sloc: ansic: 6,871; makefile: 339
file content (25 lines) | stat: -rw-r--r-- 737 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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);