Crates.io | hilbert_transform |
lib.rs | hilbert_transform |
version | 0.1.1 |
source | src |
created_at | 2023-08-09 20:47:08.061566 |
updated_at | 2023-08-09 22:46:50.020699 |
description | An implementation of Hilbert Transformation like Matlab/Octave hilbert function |
homepage | |
repository | https://github.com/lcscosta/hilbert_transform_rs |
max_upload_size | |
id | 940367 |
size | 4,109 |
Hilbert_transform is a library written in Rust to perform the hilbert transformation like Matlab/Octave or scipy.signals.hilbert.
Hilbert_transform is implemented based on scipy implementation of same function.
use hilbert_transform::{hilbert};
fn main() {
let input = vec![1.0, 2.0, 3.0, 4.0];
let hilbert_output = hilbert(&input);
println!("{:?}", hilbert_output);
// hilbert_output will be equal to: [Complex { re: 1.0, im: 1.0 }, Complex { re: 2.0, im: -1.0 }, Complex { re: 3.0, im: -1.0 }, Complex { re: 4.0, im: 1.0 }]
}