2 using System.Collections;
13 eqnStrings =
new string[]{
14 "xdot = -beta x + sin(y)",
15 "ydot = -beta y + sin(z)",
16 "zdot = -beta z + sin(x)"
20 new ParamBundle(
"default (scaled)",
new float[] {0.19f},
21 new Vector3(0.1f, 0, 0),
new Vector3(-00.5f,-00.3f,00.3f), 1.32f),
23 new Vector3(0.1f, 0, 0)),
26 paramNames =
new string[] {
"beta"};
35 public override void Function(ref
float[] x_in, ref
float[] x_out) {
36 x_out[0] = -beta*x_in[0] + Mathf.Sin(x_in[1]);
37 x_out[1] = -beta*x_in[1] + Mathf.Sin(x_in[2]);
38 x_out[2] = -beta*x_in[2] + Mathf.Sin(x_in[0]);
override void SetParams(ParamBundle pb)
Sets the parameter bunlde to be used by the system.
float[] eqnParam
parameters used in the equation
Chaos eqn. Base class for all equations that define a 3D chaotic system.
override void Function(ref float[] x_in, ref float[] x_out)
Evaluate the first order evolution of the attractor, given the current position.
Parameter bundle. Container class to hold the values for starting a chaotic system. Holds the parameters for the equations and the initial position and scale values.