A simple function to compute the running optimal average and effective no. of parameters.
Project description
Running-Optimal-Average
The running optimal average is a smooth/flexible model that can describe time series data. This uses a Gaussian window function that moves through the data giving stronger weights to points close to the centre of the Gaussian. Therefore the width of the window function, delta, controls the flexibility of the model, with a small delta providing a very flexible model.
The function also calculates the effective no. of parameters as a very flexible model will correspond to large no. of parameters while a rigid model (low delta) has a low effective no. of parameters.
An error envelope is also calculated for the model.
Usage:
t, model, errs, P = RunningOptimalAverage(t_data, Flux, Flux_err, delta)
Calculate running optimal average on a fine grid of 1000 equally spaced points over the range of data. Also returns errors and effective number of parameters.
Import using:
from ROA import RunningOptimalAverage
Parameters
t_data : float array : Time values of the data points
Flux : float array : Flux data values
Flux_err : float array : Errors for the flux data points
delta : float : Window width of the Gaussian memory function - controls how flexible the model is
Returns
t : float array : Time values of the grid used to calculate ROA
model : float array : Running optimal average's calculated for each time t
errs : float array : Errors of the running optimal average
P : float : Effective number of parameters for the model
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
Built Distribution
File details
Details for the file ROA-1.8.tar.gz
.
File metadata
- Download URL: ROA-1.8.tar.gz
- Upload date:
- Size: 112.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc9fd2368534948fecb7ffab3c94757e12504d4a1e41a800c2f96bb5e68f9d37 |
|
MD5 | f28b61ad03cf0771944105d7593dc318 |
|
BLAKE2b-256 | 4b8e883585187dfa2f59b7f7b8f65ed5dda67fe16cc26e160d96fa72c7b1f9fd |
File details
Details for the file ROA-1.8-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: ROA-1.8-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 396.8 kB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 826722baae6666e8f47a71b3e6e315e35d681fe15707b5ff5b3b731f64d5a86f |
|
MD5 | 0f422b57b665149b3b2526b2363ff2f1 |
|
BLAKE2b-256 | 5987dd33ef8362490633b56766a559275e7d9223cf783a4a0a1bd6df4c48e9f7 |