Reduce the number of points while keeping visually the same noise. Practical to
display many spectra as SVG. This algorithm is designed for non-continuous data.
We are expecting peaks to be only positive and the x values to be ordered.
SHOULD NOT BE USED FOR DATA PROCESSING !!!
Parameters
data: DataXY<NumberArray>
Object that contains property x (an ordered increasing array) and y (an array)
Reduce the number of points while keeping visually the same noise. Practical to display many spectra as SVG. This algorithm is designed for non-continuous data. We are expecting peaks to be only positive and the x values to be ordered. SHOULD NOT BE USED FOR DATA PROCESSING !!!