2 using System.Collections;
8 private float sigma = 10f;
9 private float b = 8f/3f;
10 private float rho = 28f;
15 eqnStrings =
new string[]{
17 "y = - x z + rho x - y",
23 new ParamBundle(
"default (scaled)", 10f, 8f/3f, 28f,
24 new Vector3(2f, 0.5f, 23f),
new Vector3(0f, 0f, -25.2f), 0.22f),
26 new Vector3(0.1f, 0.1f, 0.1f)),
29 paramNames =
new string[] {
"sigma",
"b",
"rho"};
40 public override void Function(ref
float[] x_in, ref
float[] x_out) {
41 x_out[0] = sigma * (x_in[1] - x_in[0]);
42 x_out[1] = -1f * x_in[0]*x_in[2] + rho * x_in[0] - x_in[1];
43 x_out[2] = x_in[0]*x_in[1] - b * x_in[2];
float[] eqnParam
parameters used in the equation
override void SetParams(ParamBundle pb)
Sets the parameter bunlde to be used by the system.
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.