Inferfs

Rust library to infer the samplerate of a dataset.

This will automatically skip one row (to account for potential headers), and given a timestamp column, will attempt to infer the samplerate over a given number of samples.

git remote add origin git@github.com:ChrisDavison/inferfs.git

Usage

Only a single function is publicly exported, infer_samplerate:

~~~rust pub fn infersamplerate(filename: String, delim: char, numrows: usize, col: usize) -> Result ~~~

Example

~~~rust extern crate infer_fs;

fn main() { let filename = "somesampledata.csv".tostring(); let delim = ','; let numrows = 100; let col = 0;

match infer_fs::infer_samplerate(filename, delim, num_rows, col) {
    Ok(fs) => println!("Samplerate: {}", fs),
    Err(e) => println!("{}", e)
}

} ~~~