迭代曲线:
![](https://i-blog.csdnimg.cn/blog_migrate/d38f4b9ccc940c77692705d3cc15c6bb.png)
代码:
import numpy as np
import matplotlib.pyplot as plt
def levy_flight(beta):
# 计算 sigma 值
sigma = (np.math.gamma(1 + beta) * np.sin(np.pi * beta / 2) /
(np.math.gamma((
迭代曲线:
代码:
import numpy as np
import matplotlib.pyplot as plt
def levy_flight(beta):
# 计算 sigma 值
sigma = (np.math.gamma(1 + beta) * np.sin(np.pi * beta / 2) /
(np.math.gamma((