Created
March 23, 2018 13:11
-
-
Save rbino/784492b232970a9dae40c5086ea7bc6a to your computer and use it in GitHub Desktop.
Simple ExLTTB example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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