calculating weibull parameters from data