version 0.4.1
polyfit.hh File Reference

Polynomial fitting of data. More...

#include <dune/functions/analyticfunctions/polynomial.hh>
#include <Eigen/Dense>

Go to the source code of this file.

Namespaces

namespace  Ikarus
 
namespace  Ikarus::utils
 

Functions

std::tuple< Dune::Functions::Polynomial< double >, double > Ikarus::utils::polyfit (const Eigen::Ref< const Eigen::VectorXd > &x, const Eigen::Ref< const Eigen::VectorXd > &y, int deg)
 Fits a polynomial of a given degree to the given data points. More...