Currently you can do something like spectrum1.y -= spectrum2.y to subtract one spectrum from another (assuming both have the same x), but this neither checks that the spectra are compatible, and it's also a bit clumsy.
It would be much nicer to be able to simply do spectrum1 -= spectrum2 to do the same thing, while also checking that it makes sense.
Currently you can do something like
spectrum1.y -= spectrum2.y
to subtract one spectrum from another (assuming both have the same x), but this neither checks that the spectra are compatible, and it's also a bit clumsy.It would be much nicer to be able to simply do
spectrum1 -= spectrum2
to do the same thing, while also checking that it makes sense.