aboutsummaryrefslogtreecommitdiff
path: root/chaos/src/lorenz.hpp
diff options
context:
space:
mode:
authorTim Blechmann <timblech@users.sourceforge.net>2005-06-16 13:02:02 +0000
committerIOhannes m zmölnig <zmoelnig@iem.at>2015-10-14 15:11:59 +0200
commitd1ed55f96f9cecc818844006fb36cd58ca70da5e (patch)
tree4d1ed404ba54ad7f360cec5ad3d0b38ec4b24840 /chaos/src/lorenz.hpp
parent2434290915cda6ed855e4dc2249312153b995817 (diff)
- parameter searching (broken)
- misc. updates svn path=/trunk/externals/tb/; revision=3192
Diffstat (limited to 'chaos/src/lorenz.hpp')
-rw-r--r--chaos/src/lorenz.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/chaos/src/lorenz.hpp b/chaos/src/lorenz.hpp
index ee4e516..e94f027 100644
--- a/chaos/src/lorenz.hpp
+++ b/chaos/src/lorenz.hpp
@@ -63,6 +63,16 @@ public:
deriv[1] = - x1 * x3 + CHAOS_PARAMETER(r) * x1 - x2;
deriv[2] = x1 * x2 - CHAOS_PARAMETER(b) * x3;
}
+
+
+ /* function has a fix point for x1 == x2 == x3 == 0 */
+ virtual void m_verify()
+ {
+ if (m_data[0] == 0 && m_data[1] == 0 && m_data[2] == 0)
+ for (int i = 0; i != 3; ++i)
+ m_data[i] = rand_range(0,3);
+ }
+
CHAOS_SYSVAR_FUNCS(x1, 0);
CHAOS_SYSVAR_FUNCS(x2, 1);