pyarts3.arts.random.weibull_distribution
- random.weibull_distribution(N: int = 1, shape: float = 1.0, scale: float = 1.0) pyarts3.arts.Vector
Generate random numbers following a Weibull distribution
Wraps std::weibull_distribution from the C++ standard library.
import matplotlib.pyplot as plt import pyarts3 as pa plt.hist(pa.arts.random.weibull_distribution(10000, 1.0, 1.0), bins=50, density=True) plt.title("A plotting example") plt.xlabel("Value") plt.ylabel("Density") plt.yscale("log")
(
Source code,svg,pdf)