Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Simple ExLTTB example
# Downsample a list of data in the default shape of %{x: x, y: y}
input_samples = for x <- 1..1000, do: %{x: x, y: :random.uniform() * 100}
# 50 output samples
output_samples = ExLTTB.downsample_to(input_samples, 50)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment