From d1ed55f96f9cecc818844006fb36cd58ca70da5e Mon Sep 17 00:00:00 2001 From: Tim Blechmann Date: Thu, 16 Jun 2005 13:02:02 +0000 Subject: - parameter searching (broken) - misc. updates svn path=/trunk/externals/tb/; revision=3192 --- chaos/src/lorenz.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'chaos/src/lorenz.hpp') 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); -- cgit v1.2.1