Nadaraya Watson regression. More...
#include <qle/math/nadarayawatson.hpp>
Public Member Functions | |
template<class I1 , class I2 , class Kernel > | |
NadarayaWatson (const I1 &xBegin, const I1 &xEnd, const I2 &yBegin, const Kernel &kernel) | |
Real | operator() (Real x) const |
Real | standardDeviation (Real x) const |
Private Attributes | |
QuantLib::ext::shared_ptr< detail::RegressionImpl > | impl_ |
Nadaraya Watson regression.
This implements the estimator
\[ m(x) = \frac{\sum_i y_i K(x-x_i)}{\sum_i K(x-x_i)} \]
Definition at line 103 of file nadarayawatson.hpp.
NadarayaWatson | ( | const I1 & | xBegin, |
const I1 & | xEnd, | ||
const I2 & | yBegin, | ||
const Kernel & | kernel | ||
) |
Definition at line 109 of file nadarayawatson.hpp.
Real operator() | ( | Real | x | ) | const |
Definition at line 113 of file nadarayawatson.hpp.
Real standardDeviation | ( | Real | x | ) | const |
Definition at line 115 of file nadarayawatson.hpp.
|
private |
Definition at line 118 of file nadarayawatson.hpp.