use-drawdown
Primitive drawdown vocabulary for RustUse quantitative crates.
use-drawdown uses the convention current / peak - 1.0, capped at 0.0 for new highs. Drawdowns are therefore zero or negative finite f64 values.
Example
use Drawdown;
let drawdown = from_peak_current?;
let maximum = maximum_from_values?;
assert_eq!;
assert_eq!;
# Ok::
Scope
Use this crate for drawdown values and small peak/current calculations. It does not implement performance analytics, reporting, or charts.
License
Licensed under either MIT or Apache-2.0.