mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-02-03 09:44:01 -05:00
Compare commits
No commits in common. "60c0e311738053b1b613e8c0d8a4718c7bcca96f" and "5c742a873bed17767976e22635dc00552636f228" have entirely different histories.
60c0e31173
...
5c742a873b
@ -16,7 +16,6 @@
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
||||
///////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <boost/version.hpp>
|
||||
#include <boost/math/interpolators/barycentric_rational.hpp>
|
||||
|
||||
#include "noisefigure.h"
|
||||
@ -42,12 +41,6 @@
|
||||
#include "channel/channelwebapiutils.h"
|
||||
#include "maincore.h"
|
||||
|
||||
#if BOOST_VERSION < 107700
|
||||
using namespace boost::math;
|
||||
#else
|
||||
using namespace boost::math::interpolators;
|
||||
#endif
|
||||
|
||||
MESSAGE_CLASS_DEFINITION(NoiseFigure::MsgConfigureNoiseFigure, Message)
|
||||
MESSAGE_CLASS_DEFINITION(NoiseFigure::MsgPowerMeasurement, Message)
|
||||
MESSAGE_CLASS_DEFINITION(NoiseFigure::MsgNFMeasurement, Message)
|
||||
@ -187,7 +180,7 @@ double NoiseFigure::calcENR(double frequency)
|
||||
else
|
||||
{
|
||||
int order = size - 1;
|
||||
barycentric_rational<double> interpolant(std::move(x), std::move(y), order);
|
||||
boost::math::barycentric_rational<double> interpolant(std::move(x), std::move(y), order);
|
||||
enr = interpolant(frequency);
|
||||
}
|
||||
}
|
||||
|
@ -17,20 +17,11 @@
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
#include <array>
|
||||
|
||||
#include <boost/version.hpp>
|
||||
#include <boost/math/interpolators/barycentric_rational.hpp>
|
||||
|
||||
#include "noisefigureenrdialog.h"
|
||||
#include "util/interpolation.h"
|
||||
|
||||
#if BOOST_VERSION < 107700
|
||||
using namespace boost::math;
|
||||
#else
|
||||
using namespace boost::math::interpolators;
|
||||
#endif
|
||||
|
||||
NoiseFigureENRDialog::NoiseFigureENRDialog(NoiseFigureSettings *settings, QWidget* parent) :
|
||||
QDialog(parent),
|
||||
m_settings(settings),
|
||||
@ -162,7 +153,7 @@ void NoiseFigureENRDialog::plotChart()
|
||||
y[i] = points[i][1];
|
||||
}
|
||||
int order = size - 1;
|
||||
barycentric_rational<double> interpolant(std::move(x), std::move(y), order);
|
||||
boost::math::barycentric_rational<double> interpolant(std::move(x), std::move(y), order);
|
||||
|
||||
x.resize(size);
|
||||
y.resize(size);
|
||||
|
Loading…
Reference in New Issue
Block a user