npstat::LogisticRegressionOnGrid< Numeric, StackLen, StackDim > Class Template Reference
Inheritance diagram for npstat::LogisticRegressionOnGrid< Numeric, StackLen, StackDim >:
Detailed Descriptiontemplate<typename Numeric, unsigned StackLen = 1U, unsigned StackDim = 10U>
|
npstat::LogisticRegressionOnGrid< Numeric, StackLen, StackDim >::LogisticRegressionOnGrid | ( | const ArrayND< Numeric, StackLen, StackDim > & | numerator, |
const ArrayND< Numeric, StackLen, StackDim > & | denominator, | ||
const QuadraticOrthoPolyND & | poly, | ||
bool | calculateLikelihoodGradient | ||
) |
Constructor arguments are as follows:
numerator – count of points which "pass" for this grid cell
denominator – count of all points associated with this grid cell
poly – the set of orthogonal polynomial 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 "numerator", "denominator", or "poly" objects. These objects must still exist when the LogisticRegressionOnGrid object is in use.
The "standard" situation here is that the regression box is simply taken to be an integer-sized box whose length is the same as the number of steps used to build the polynomials.
|
inlinevirtual |
Method from AbsArrayProjector we have to implement
Implements npstat::AbsArrayProjector< Numeric, double >.
|
inline |
Inspect object properties
|
virtual |
Process one array point
Implements npstat::AbsArrayProjector< Numeric, double >.
|
inlinevirtual |
Return the result at the end of array processing
Implements npstat::AbsArrayProjector< Numeric, double >.