Spectrum reduce

Draft of code to spectrum reduction via intgration
instead of `x_value_array` should this just be `x`?