npstat::LogisticRegressionOnKDTree< Point, Numeric, BooleanFunctor > Class Template Reference
Inheritance diagram for npstat::LogisticRegressionOnKDTree< Point, Numeric, BooleanFunctor >:
Detailed Descriptiontemplate<class Point, class Numeric, class BooleanFunctor>
|
npstat::LogisticRegressionOnKDTree< Point, Numeric, BooleanFunctor >::LogisticRegressionOnKDTree | ( | const KDTree< Point, Numeric > & | dataTree, |
const BooleanFunctor & | pointPassesOrFails, | ||
const QuadraticOrthoPolyND & | poly, | ||
bool | calculateLikelihoodGradient | ||
) |
Constructor arguments are as follows:
dataTree – the tree of data points.
pointPassesOrFails – a functor that tells us whether the point "passes" (observed value of 1) or "fails" (observed value of 0).
poly – the set of orthogonal polynomials used to construct the local regression surface.
calculateLikelihoodGradient – flag which tells whether the code should calculate the gradient of log-likelihood with respect to coefficients of the local polynomial.
This object will not own "dataTree" or "poly" objects. These objects must still exist when the LogisticRegressionOnKDTree object is in use. The point selection functor will be copied.
|
inlinevirtual |
Method from AbsVisitor we have to implement
Implements npstat::AbsVisitor< Point, double >.
|
inline |
Inspect the data
|
virtual |
Process one array point
Implements npstat::AbsVisitor< Point, double >.
|
inlinevirtual |
Return the result at the end of array processing
Implements npstat::AbsVisitor< Point, double >.