混沌数学之Kent模型

相关软件:混沌数学之离散点集图形DEMO

相关代码:

// http://wenku.baidu.com/view/7c6f4a000740be1e650e9a75.html
// 肯特映射
class KentEquation : public DiscreteEquation
{
public:
    KentEquation()
    {
        m_StartX = 0.0f;
        m_StartY = 0.36f;

        m_ParamA = 0.01f;
    }

    void IterateValue(float x, float y, float& outX, float& outY) const
    {
        outX = x+0.00025f;
        if (y <= m_ParamA)
        {
            outY = y/m_ParamA;
        }
        else
        {
            outY = (1-y)/(1-m_ParamA);
        }
    }

    bool IsValidParamA() const {return true;}
};

相关截图:

 

posted on 2014-09-15 15:02  叶飞影  阅读(1526)  评论(0编辑  收藏  举报