mljs / spectra-processing

Various methods to help spectra processing
https://mljs.github.io/spectra-processing/
MIT License
7 stars 12 forks source link

Split method xSequentialFill in xSequentialFillFromTo and xSequentialFillFromStep #219

Closed lpatiny closed 6 months ago

lpatiny commented 6 months ago

We try to have too many options in this method and I think it should be split in 2 methods. The current code is pretty complex.

https://github.com/mljs/spectra-processing/blob/220f6ce69fb0caaba131d26f1899de7b14ce5ce6/src/x/xSequentialFill.ts#L23-L26

xSequentialFillFromTo(from, to, size, {ArrayConstructor})

xSequentialFillFromStep(from, step, size, {ArrayConstructor})

Both methods will return a Float64Array or the output if it has been provided.

lpatiny commented 6 months ago

Closed by: https://github.com/mljs/spectra-processing/commit/5cac64531ea77ee0b204c60eaca315a98e3c2c74