tape.analysis.structure_function.macleod_2012.calculator#
Attributes#
Classes#
This class implements the structure function calculation described in |
Module Contents#
- class Macleod2012StructureFunctionCalculator(lightcurves: List[tape.analysis.structure_function.sf_light_curve.StructureFunctionLightCurve], argument_container: tape.analysis.structure_function.base_argument_container.StructureFunctionArgumentContainer)[source]#
Bases:
tape.analysis.structure_function.base_calculator.StructureFunctionCalculatorThis class implements the structure function calculation described in MacLeod et al. 2012, 2012ApJ…753..106M [https://arxiv.org/abs/1112.0679] MacLeod et al. 2012, Erratum 2014ApJ…782..119M
SF_obs(deltaT) = 0.74 * IQR
Where IQR is the interquartile range between 25% and 75% of the sorted (y(t) - y(t+delta_t)) distribution.
Note that the return value is structure function squared.
Additional references: Kozlowski 2016, 2016ApJ…826..118K [https://arxiv.org/abs/1604.05858]
- calculate_iqr_sf2_statistic(input)[source]#
For a given set of binned metrics (in this case delta fluxes) calculate the interquartile range.
- Parameters:
input (np.ndarray (N,)) – The delta flux values that correspond to a given delta time bin.
- Returns:
Result of calculation defined in MacLeod et al. 2012, Erratum 2014ApJ…782..119M:
SF(dt) = 0.74 * IQR
- Return type:
float