Crates.io | tv1d |
lib.rs | tv1d |
version | 0.1.0 |
source | src |
created_at | 2017-03-07 22:39:16.38728 |
updated_at | 2017-03-07 22:39:16.38728 |
description | Total variation denoising algorithms for 1D data. |
homepage | |
repository | https://github.com/jeenalee/tv1d |
max_upload_size | |
id | 8884 |
size | 25,197 |
tv1d
Total variation denoising algorithms for 1d data.
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.
Add this to your Cargo.toml
:
[dependencies]
tv1d = "0.1.0"
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);
}
Read the documentation on Docs.rs.
This crate is licensed under MIT license (LICENSE
).
Please check out the Rust Book's chapter "Rust Inside Other Languages".
See CONTRIBUTING.md!