Skip to main content

A universal approach to optimal frequency identification using nonparametric kernel regression

Project description

FINKER Logo

Overview

FINKER (Frequency Identification through Nonparametric Kernel Regression) is an advanced statistical tool for optimal frequency identification using nonparametric kernel regression. It is designed to offer more accurate estimation in various contexts, including handling measurement uncertainties and facilitating multiband processing, even with as few as 10 observations. The project leverages the power of kernel regression methods to provide robust, flexible analysis, particularly valuable in astronomical and statistical applications.

Features

  • Local Linear and Constant Regression: Utilizes local regression techniques for precise modeling.
  • Kernel Functions and Bandwidth Calculation: Includes Gaussian kernel and implements a custom fixed bandwidth for computational efficiency. Multiple other options are available: Silverman's rule, Scott's rule, and an Adaptive bandwidth.
  • Multiband Processing: Capable of handling multi-band data efficiently.
  • Error Handling: Robust to measurement uncertainties, enhancing reliability in real-world datasets.

Installation

To use FINKER, clone the repository or install with:

pip install FINKER

Usage

Here's a simple example to demonstrate the use of FINKER's kernel regression functions:

from FINKER.utils_FINKER import *

# Creating a FINKER instance
finker = FINKER()

# Running a parallel FINKER search
best_freq, freq_err, result_dict = finker.parallel_nonparametric_kernel_regression(
    t_observed=t_observed,
    y_observed=y_observed,
    uncertainties=uncertainties,
    freq_list=freq,
    show_plot=False,
    kernel_type='gaussian',
    regression_type='local_constant',
    bandwidth_method='custom',
    n_jobs=-2
)

Replace t_observed, y_observed, and uncertainties with numpy arrays of your observations. Replace freq with a numpy array of the ferquencies to search.

Contributing

Contributions to FINKER are welcome! Please read our contributing guidelines for more information on how to get involved.

License

This project is licensed under the Apache License - see the LICENSE file for details.

Contact

For any queries or further information, please reach out to f.stoppa@astro.ru.nl.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

FINKER-1.0.1.tar.gz (17.2 kB view hashes)

Uploaded Source

Built Distribution

FINKER-1.0.1-py3-none-any.whl (17.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page