Extended binary arithmetic operators
hyperSpec
’s binary arithmetic operators (+
, -
, *
, /
) now working for calculations on spectra matrix plus row or column-vector objects as well, so that many calls to sweep
can now be more easily expressed, e.g.
Centering:
> plot (flu - colMeans (flu))
Normalization:
> plot (flu / rowMeans (flu))
Published: 2013-10-25 news