2 using System.Collections;
8 private float a = 0.2f;
9 private float b = 0.2f;
10 private float c = 5.7f;
14 eqnStrings =
new string[]{
23 new ParamBundle(
"default (scaled)", 0.2f, 0.2f, 5.7f,
24 new Vector3(-2f,5f,-10f),
new Vector3(-1.2f, 1.5f, -11f), 0.45f),
26 new Vector3(0f, 0f, 0f))
29 paramNames =
new string[] {
"sigma",
"b",
"rho"};
30 slideShowSpeed = 2.5f;
40 public override void Function(ref
float[] x_in, ref
float[] x_out) {
41 x_out[0] = -x_in[1] - x_in[2];
42 x_out[1] = x_in[0] + a* x_in[1];
43 x_out[2] = b + x_in[2] * (x_in[0] - c);
override void SetParams(ParamBundle pb)
Sets the parameter bunlde to be used by the system.
override void Function(ref float[] x_in, ref float[] x_out)
Evaluate the first order evolution of the attractor, given the current position.
float[] eqnParam
parameters used in the equation
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.