ess.reflectometry.tools.scale_reflectivity_curves_to_overlap#
- ess.reflectometry.tools.scale_reflectivity_curves_to_overlap(curves, critical_edge_interval=None)[source]#
Make the curves overlap by scaling all except the first by a factor. The scaling factors are determined by a maximum likelihood estimate (assuming the errors are normal distributed).
If
critical_edge_interval
is provided then all curves are scaled.All curves must be have the same unit for data and the Q-coordinate.