LSST-nonproject / sims_maf_contrib

Contributed code for MAF (sims_maf)
18 stars 46 forks source link

AngularSpreadMetric #19

Closed jmeyers314 closed 9 years ago

jmeyers314 commented 9 years ago

I wasn't completely satisfied with the built in RmsAngleMetric for measuring the uniformity of camera rotation angles, so I built a new metric and showed its use in a new ipython notebook.

The new metric AngularSpreadMetric (based on this wikipedia link) is robust against both coherent phase changes in input angles and small perturbations to angles. It has a range of exactly 0 (maximally non-uniform) to 1 (uniform distribution).

I also added a keyword that can be used to change interpreted periodicity of variables from the default 2pi. This may be useful for systematics (like fixed focal plane correlation function systematics) that are periodic every pi or pi/2 radians instead of every 2pi radians.