| Crates.io | flickers |
| lib.rs | flickers |
| version | 0.1.0 |
| created_at | 2025-08-24 08:55:10.269776+00 |
| updated_at | 2025-08-24 08:55:10.269776+00 |
| description | A crate for calculating Allan-like deviations and other time and frequency stability statistics functions. |
| homepage | https://github.com/oreillepale/flickers |
| repository | https://github.com/oreillepale/flickers |
| max_upload_size | |
| id | 1808185 |
| size | 37,664 |
This rust crate contains functions to calculate time and frequency stability statistics such that Allan-like deviations.
For the moment only the Allan and Overlapping Allan deviations are available but I intend to add all the deviations that can be found in stable32, allantools or sigmatheta.
The goal is to unit test everything with stable32.
I have two objectives:
Here is an example on how to calculate the Overlapping Allan deviation. For the moment the package only accepts phase as input.
use flickers::{*};
fn main(){
// generate phase data
let phases = test_suite::generate_phase();
let result = DevComputer::default()
.with_phases(&phases)
.with_tau0(1.)
.with_afs(Afs::Decade)
.with_noise_id(NoiseId::Default)
.compute();
println!("{:?}",result);
}
sigmathea for the moment and there is not python equivalent.Serde for DevResultMy primarly source is the Handbook of Frequency Stability Analysis By W.J. Riley and the application notes found on Stable32's website. For the moment all the unit tests are compared to the values found in the former, especially Table 32.
The only deviation (yet) is the calculation of the error bars. It appears that Stable32's code contains a typo when calculating the inverse $\chi_2$ cumulative distribution which is fixed in the current code.