sigma_slope¶
- rubin_sim.maf.utils.sigma_slope(x, sigma_y)¶
Calculate the uncertainty in fitting a line, as given by the spread in x values and the uncertainties in the y values.
- Parameters:
- xnumpy.ndarray
The x values of the data
- sigma_ynumpy.ndarray
The uncertainty in the y values
- Returns:
- float
The uncertainty in the line fit