Example #1
0
    def _spectrum_function(self):
        spec = np.zeros(len(self.energy_intervals))
        spec_err = np.zeros_like(spec)
        for i, eint in enumerate(self.energy_intervals):
            lc = self._construct_lightcurves(eint, exclude=False,
                                             only_base=True)

            spec[i], spec_err[i] = excess_variance(lc, self.normalization)

        return spec, spec_err
    def _spectrum_function(self):
        spec = np.zeros(len(self.energy_intervals))
        spec_err = np.zeros_like(spec)
        for i, eint in enumerate(self.energy_intervals):
            lc = self._construct_lightcurves(eint, exclude=False,
                                             only_base=True)

            spec[i], spec_err[i] = excess_variance(lc, self.normalization)

        return spec, spec_err
Example #3
0
def evar_fun(lc):
    from stingray.utils import excess_variance
    return excess_variance(lc, normalization='none')
Example #4
0
def evar_fun(lc):
    from stingray.utils import excess_variance
    return excess_variance(lc, normalization='none')
Example #5
0
def excvar_norm(lc):
    return excess_variance(lc, normalization='norm_xs')
Example #6
0
def fvar(lc):
    return excess_variance(lc, normalization='fvar')
Example #7
0
 def excvar(lc):
     from stingray.utils import excess_variance
     return excess_variance(lc, normalization='fvar')
Example #8
0
 def excvar(lc):
     from stingray.utils import excess_variance
     return excess_variance(lc, normalization='fvar')