2 using System.Collections;
11 private float epsilon;
18 eqnStrings =
new string[]{
19 "xdot = alpha y + beta x + eta yz",
20 "ydot = delta y - z + epsilon x z",
21 "zdot = zeta z + rho xy"
27 new ParamBundle(
"default",
new float[] {2.4f, -3.78f, 14f, -11f, 4f, 5.58f, 1f},
28 new Vector3(0.1f, 0, 0)),
31 paramNames =
new string[] {
"alpha",
"beta",
"eta",
"delta",
"eplsilon",
"rho",
"zeta"};
46 public override void Function(ref
float[] x_in, ref
float[] x_out) {
47 x_out[0] = alpha*x_in[1] + beta*x_in[0] + eta*x_in[1]*x_in[2];
48 x_out[1] = delta*x_in[1] - x_in[2] + epsilon*x_in[0]*x_in[2];
49 x_out[2] = zeta*x_in[2] + rho*x_in[0]*x_in[1];
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.
override void SetParams(ParamBundle pb)
Sets the parameter bunlde to be used by the system.