2 using System.Collections;
11 private float epsilon;
18 eqnStrings =
new string[]{
19 "xdot = alpha(y-x) - delta xz",
20 "ydot = rho x + zeta y - xz",
21 "zdot = beta z + xy - epsilon x^2"
27 new ParamBundle(
"default",
new float[] {40f,1.833f,0.16f,0.65f,55f,20f},
28 new Vector3(0.349f,0f,-0.16f)),
31 paramNames =
new string[] {
"alpha",
"beta",
"delta",
"eplsilon",
"rho",
"zeta"};
45 public override void Function(ref
float[] x_in, ref
float[] x_out) {
46 x_out[0] = alpha*(x_in[1]-x_in[0]) - delta*x_in[0]*x_in[2];
47 x_out[1] = rho*x_in[0] + zeta*x_in[1] - x_in[0]*x_in[2];
48 x_out[2] = beta*x_in[2] + x_in[0]*x_in[1] - epsilon*x_in[0]*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
override void Function(ref float[] x_in, ref float[] x_out)
Evaluate the first order evolution of the attractor, given the current position.
Chaos eqn. Base class for all equations that define a 3D chaotic system.
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.