混沌数学之Henon模型
相关DEMO参见:混沌数学之离散点集图形DEMO
相关代码:
// http://wenku.baidu.com/view/d51372a60029bd64783e2cc0.html?re=view // http://wenku.baidu.com/view/ac9b57ea172ded630b1cb65b.html class HenonEquation : public DiscreteEquation { public: HenonEquation() { m_StartX = 0.01f; m_StartY = 0.01f; m_ParamA = 1.28f; m_ParamB = 0.3f; } void IterateValue(float x, float y, float& outX, float& outY) const { outX = 1 - m_ParamA*x*x + m_ParamB*y; outY = x; } bool IsValidParamA() const {return true;} bool IsValidParamB() const {return true;} };
相关截图: