MCPcopy Create free account
hub / github.com/Open-Quant/openquant / encode_array_f64

Function encode_array_f64

crates/openquant/tests/microstructural_features.rs:132–134  ·  view source on GitHub ↗
(arr: &[f64], enc: &[(f64, char)])

Source from the content-addressed store, hash-verified

130fn test_tick_rule_encoding() {
131 assert!(encode_tick_rule_array(&[-1, 1, 0, 20000000]).is_err());
132 let enc = encode_tick_rule_array(&[-1, 1, 0, 0]).unwrap();
133 assert_eq!(enc, "bacc");
134}
135
136#[test]
137fn test_entropy_calculations() {

Callers 1

Calls 1

encode_arrayFunction · 0.85

Tested by

no test coverage detected