mbd-wasm
A Rust implementation of the modified band depth that also compiles to WASM.
Usage
The library can be used a simple rust crate, by adding mbd = "*"
to your Cargo.toml
. Then, we can compute the modified band depth of the functional [2.0, 3.0, 4.0]
as follows:
let data = vec!;
let mbd = from_samples;
assert_eq!;
Similarly, you can call the the same functionality from JavaScript:
mbdWasm = ;
const data =
const num_samples = data.;
const num_timepoints = data.;
const mbd = mbdWasm.;
console.log; // prints 1.0