You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def fit_weibull_and_ecdf(df_speed, x=None):
from statsmodels.distributions.empirical_distribution import ECDF
max_speed = df_speed.max()
if x is None:
x = linspace(0, max_speed, 20)
# Fit Weibull, notice loc value 0 or not
weibull_params, y_weibull, density_expected_weibull, y_cdf_weibull = fit_weibull(df_speed, x)
# Fit Ecdf
y_ecdf = ECDF(df_speed)(x)
return x, y_weibull, density_expected_weibull, y_cdf_weibull, weibull_params, y_ecdf
NameError: name 'sm' is not defined
请问‘sm’在哪里定义的,代表什么意思?
The text was updated successfully, but these errors were encountered: