npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
npstat::AbsLossCalculator< MaxDim, MaxReplace > Struct Template Referenceabstract

#include <AbsLossCalculator.hh>

Inheritance diagram for npstat::AbsLossCalculator< MaxDim, MaxReplace >:
npstat::TwoPointsLTSLoss< MaxDim, MaxReplace, MaxDeg > npstat::WeightedLTSLoss< MaxDim, MaxReplace, MaxDeg >

Public Member Functions

virtual LocalLoss operator() (const npstat::ArrayND< double > &slidingWindow, const unsigned *indexInWindow, const unsigned *indexInDataset, ReplacementBlock< MaxDim, MaxReplace > *block) const =0
 

Detailed Description

template<unsigned MaxDim, unsigned MaxReplace>
struct npstat::AbsLossCalculator< MaxDim, MaxReplace >

Abstract base class for calculations of the local loss

Member Function Documentation

◆ operator()()

template<unsigned MaxDim, unsigned MaxReplace>
virtual LocalLoss npstat::AbsLossCalculator< MaxDim, MaxReplace >::operator() ( const npstat::ArrayND< double > &  slidingWindow,
const unsigned *  indexInWindow,
const unsigned *  indexInDataset,
ReplacementBlock< MaxDim, MaxReplace > *  block 
) const
pure virtual

In addition to returning the loss, the following function must fill out the suggested replacement block

Implemented in npstat::WeightedLTSLoss< MaxDim, MaxReplace, MaxDeg >, and npstat::TwoPointsLTSLoss< MaxDim, MaxReplace, MaxDeg >.


The documentation for this struct was generated from the following file: