The fastest streaming algorithms for your TTTR data.
TTTR Toolbox can be used as a standalone Rust library. If you do most of your data analysis in Python you may prefer to check Trattoria, a wrapper library for this crate.
If you want support for more record formats and file formats please ask for it. At the very least we will need the file format specification and a file with some discernible features to test the implementation.
```rust pub fn main() { let filename = PathBuf::from("/Users/garfield/Downloads/20191205Xminus0p1Ve-6CWHBT.ptu"); let ptufile = File::PTU(PTUFile::new(filename).unwrap()); // Unwrap the file so we can print the header let File::PTU(f) = &ptufile; println!("{}", f);
let params = G2Params {
channel_1: 0,
channel_2: 1,
correlation_window: 50_000e-12,
resolution: 600e-12,
start_record: None,
stop_record: None,
};
let g2_histogram = g2(&ptu_file, ¶ms).unwrap();
println!("{:?}", g2_histogram.hist);
} ```