encode_binary

Function encode_binary 

Source
pub fn encode_binary(values: &[f32], threshold: f32) -> PackedBinary
Expand description

Encode f32 slice as packed binary.

Values above threshold (default 0.0) become 1, others become 0.