npstat::TwoPointsLTSLoss< MaxDim, MaxReplace, MaxDeg > Class Template Reference
Inheritance diagram for npstat::TwoPointsLTSLoss< MaxDim, MaxReplace, MaxDeg >:
Detailed Descriptiontemplate<unsigned MaxDim, unsigned MaxReplace, unsigned MaxDeg>
|
|
inline |
"weight" is the function used to generate local polynomials. It will be called on the local window using window coordinate system. For example, the point in the window center will be at the origin, and coordinates of all points neighboring the origin in each dimension will be either 0 or 1. The weight therefore must have an appropriate bandwidth, consistent with the expected local window width. If the bandwidth is too small (weight on the edges of the window is exactly 0) then the code will still work but will be inefficient.
"deg" is the actual degree of these polynomials (must not exceed "maxdeg").
If the "fixStripes" parameter is true, the local loss in the window will be calculated not only by removing all possible second points in addition to the central one but also by removing all possible 1-d stripes of points passing through the center.
|
virtual |
In addition to returning the loss, the following function must fill out the suggested replacement block
Implements npstat::AbsLossCalculator< MaxDim, MaxReplace >.