Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delta is in polar coordinates (0-360˚), this needs to be taken into account when calculating error. This problem is most obvious when data is 359˚ and model is 1˚ (for example). Old implementation calculates residual as 358, whereas the correct residual is 2. The change calculates error as: 2*arcsin(sin(Delta_data/2)-sin(Delta_model/2)) The factor of 2 ensures a functional relationship between error and Delta. The maximum possible residual (unweighted) is 180, which is of the same magnitude as before the change.
- Loading branch information