I have a skewed Gaussian model in lmfit that fits my data. Now I would like to draw a sample from it, but I could nowhere in the documentation find how? Is the correct approach to simply implement the model function yourself in my case the skewed normal distribution or is there a function in lmfit for this?
My code:
model = SkewedGaussianModel()
params = model.make_params(amplitude=60, center=30, sigma=10, gamma=0)
result = model.fit(y, params, x=x)
print(result.fit_report())
plt.plot(x, result.best_fit)
plt.show()
# something like this
print(result.model.eval(random.random())