oscilloscope measure algorithm
You can do:
1. If you have enough samples, then you must abandon some of them. If you have let say 2000 samples, and you have monitor that can display 1024 horizontal dots then you have to display only 1024 of them. In this situtuation you'll have to use only part of samples.
2. But if you have 100 samples and you want to display them on 1024 horizontal dots then you can connect samples with straigh line or you can smooth lines with interpolation, ro some similar technique.