Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create plot routine for extractor feets.extractors.ext_stetson.StetsonL #51

Open
leliel12 opened this issue Jan 21, 2020 · 0 comments
Open
Assignees
Labels
Milestone

Comments

@leliel12
Copy link
Contributor

Create plot routine for extractor StetsonL.

Path: feets.extractors.ext_stetson.py

Features

  • StetsonL

Extractor Documentation

These three features are based on the Welch/Stetson variability index I (Stetson, 1996) defined by the equation:

$$I = \sqrt{\frac{1}{n(n-1)}} \sum_{i=1}^n { (\frac{b_i-\hat{b}}{\sigma_{b,i}}) (\frac{v_i - \hat{v}}{\sigma_{v,i}})}$$

where :math:b_i and vi are the apparent magnitudes obtained for the candidate star in two observations closely spaced in time on some occasion i, σb, i and σv, i are the standard errors of those magnitudes, and hat{v} are the weighted mean magnitudes in the two filters, and n is the number of observation pairs.

Since a given frame pair may include data from two filters which did not have equal numbers of observations overall, the "relative error" is calculated as follows:

$$\delta = \sqrt{\frac{n}{n-1}} \frac{v-\hat{v}}{\sigma_v}$$

allowing all residuals to be compared on an equal basis.

StetsonL

Stetson L variability index describes the synchronous variability of different bands and is defined as:

$$L = \frac{JK}{0.798}$$

Again, for a Gaussian magnitude distribution, L should take a value close to zero:

>>> fs = feets.FeatureSpace(only=['SlottedL'])
>>> features, values = fs.extract(**lc_normal)
>>> dict(zip(features, values))
{'StetsonL': 0.0085957106316273714}

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants