Description
The calculation of dynamic structure factors usually does not only produce one number, but some metadata as well. One might be the integration error, another would be the unit of the result. Therefore, it would be very convenient to have a result container, which is returned by dynamic_structure_factor, which serves this metadata along with the value of the DSF itself.
Stretching this idea more, it is also conceivable that this result type could contain not only the total DSF, but the components it contains in the sense of a Chihara decomposition (free-free, bound-free, free-bound, etc).
Finally, one could implement plotting functions dedicated to vectors of such a result type, which would also be very convenient.
Description
The calculation of dynamic structure factors usually does not only produce one number, but some metadata as well. One might be the integration error, another would be the unit of the result. Therefore, it would be very convenient to have a result container, which is returned by
dynamic_structure_factor, which serves this metadata along with the value of the DSF itself.Stretching this idea more, it is also conceivable that this result type could contain not only the total DSF, but the components it contains in the sense of a Chihara decomposition (free-free, bound-free, free-bound, etc).
Finally, one could implement plotting functions dedicated to vectors of such a result type, which would also be very convenient.