J_stetson#

elk.stats.J_stetson(time, mag, mag_err, pair_threshold=0.021)[source]#

Calculate the J Stetson statistic as a measure of variability

See Stetson+1996 and Eq. 12 of Sokolovsky+2017

Parameters
timendarray

Time of observations

magndarray

Magnitudes of each observation

mag_errndarray

Errors on the magnitudes

pair_thresholdfloat, optional

Threshold for whether to consider observations close enough, by default 0.021 days (=~30 min)

Returns
Jfloat

J Stetson Statistic