tv1d

Crates.iotv1d
lib.rstv1d
version0.1.0
sourcesrc
created_at2017-03-07 22:39:16.38728
updated_at2017-03-07 22:39:16.38728
descriptionTotal variation denoising algorithms for 1D data.
homepage
repositoryhttps://github.com/jeenalee/tv1d
max_upload_size
id8884
size25,197
Jeena Lee (jeenalee)

documentation

https://docs.rs/tv1d/

README

tv1d

Build Status

Total variation denoising algorithms for 1d data.

Total Variation Denoising

Total variation denoising algorithms denoise signals through reducing the total variation. As they are effective at preserving edges while removing the noise, total variation denoising algorithms are especially suitable for signals whose model are piecewise constant function. In short, piecewise constant 1D data would look like a mix of flat regions and jumps between them.

Install

Add this to your Cargo.toml:

[dependencies]
tv1d = "0.1.0"

Example Usage

extern crate tv1d

fn main() {
    let input = vec![13.0, 24.3, 63.41, 13.6];
    let lambda = 3.0;

    let output = tv1d::condat(&input, lambda);
}

Documentation

Read the documentation on Docs.rs.

License

This crate is licensed under MIT license (LICENSE).

Using Rust crate from other languages

Please check out the Rust Book's chapter "Rust Inside Other Languages".

Contribution

See CONTRIBUTING.md!

Commit count: 31

cargo fmt