Go to the documentation of this file.
24 #ifndef _PARABOLA_HPP_
25 #define _PARABOLA_HPP_
46 Parabola(
const std::vector< std::pair<double,double> >& samples);
49 Parabola(
const std::vector< std::pair<double,double> >& samples,
50 const std::vector<double>& weights);
56 double center()
const {
return -a_[1]/(2*a_[0]);}
59 std::vector<double>
a_;
70 #endif // _PARABOLA_HPP_
Parabola(double a=0, double b=0, double c=0)
double operator()(double x) const
std::vector< double > & coefficients()
KernelTraitsBase< Kernel >::space_type::abscissa_type x
Parabola(const std::vector< std::pair< double, double > > &samples)
std::ostream & operator<<(std::ostream &os, const OrderedPair &p)
const std::vector< double > & coefficients() const
Parabola(std::vector< double > a)
Parabola(const std::vector< std::pair< double, double > > &samples, const std::vector< double > &weights)