2012-04-30 01:55:33 +00:00
|
|
|
#ifndef SPROUT_NUMERIC_DFT_FIT_SPECTRUM_HPP
|
|
|
|
#define SPROUT_NUMERIC_DFT_FIT_SPECTRUM_HPP
|
|
|
|
|
|
|
|
#include <sprout/config.hpp>
|
|
|
|
#include <sprout/algorithm/fit/result_of.hpp>
|
2012-07-08 12:05:24 +00:00
|
|
|
#include <sprout/numeric/dft/fit/amplitude_spectrum.hpp>
|
2012-04-30 01:55:33 +00:00
|
|
|
|
|
|
|
namespace sprout {
|
|
|
|
namespace fit {
|
|
|
|
//
|
|
|
|
// spectrum
|
|
|
|
//
|
|
|
|
template<typename InputIterator, typename Result>
|
|
|
|
inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm<Result>::type spectrum(
|
|
|
|
InputIterator first,
|
|
|
|
InputIterator last,
|
|
|
|
Result const& result
|
|
|
|
)
|
|
|
|
{
|
2012-07-08 12:05:24 +00:00
|
|
|
return sprout::fit::amplitude_spectrum(first, last, result);
|
2012-04-30 01:55:33 +00:00
|
|
|
}
|
|
|
|
} // namespace fit
|
|
|
|
} // namespace sprout
|
|
|
|
|
2012-07-17 08:38:45 +00:00
|
|
|
#include <sprout/numeric/dft/fit/phase_spectrum.hpp>
|
|
|
|
|
2012-04-30 01:55:33 +00:00
|
|
|
#endif // #ifndef SPROUT_NUMERIC_DFT_FIT_SPECTRUM_HPP
|