436954138f
Update version numbers across Rust, Python, and documentation files to 1.1.0. Enhance the .gitignore to include macOS dSYM files and plans directory. Introduce new dependencies in the Rust core library and update the README to reflect recent performance benchmarks and backtesting engine capabilities. Add new artifacts to the benchmarks manifest and improve documentation for the backtesting engine API.
13 lines
377 B
Rust
13 lines
377 B
Rust
use numpy::{IntoPyArray, PyArray1, PyReadonlyArray1};
|
|
use pyo3::prelude::*;
|
|
|
|
/// Hilbert Transform Dominant Cycle Phase in degrees.
|
|
#[pyfunction]
|
|
pub fn ht_dcphase<'py>(
|
|
py: Python<'py>,
|
|
close: PyReadonlyArray1<'py, f64>,
|
|
) -> PyResult<Bound<'py, PyArray1<f64>>> {
|
|
let result = ferro_ta_core::cycle::ht_dcphase(close.as_slice()?);
|
|
Ok(result.into_pyarray(py))
|
|
}
|