Skip to main content

encode_weighted

Function encode_weighted 

Source
pub fn encode_weighted(
    features: &[Feat],
    params: &Params<'_>,
    grid: &DensityGrid,
    model: DensityWeight,
) -> Result<Vec<u8>>
Expand description

Runs encode::encode() with population-density-weighted simplification. The per-edge ε multiplier is a simplification knob, so it lives here with the density code; utz_encode itself stays density-agnostic (see the encode::encode() docs).

§Errors

Returns an error when payload encoding fails.