80      Log() << kFATAL << 
"<PDEFoamKernelLinN::Estimate>: PDEFoam not set!" << 
Endl;
 
   82   return WeightLinNeighbors(foam, txvec, cv, 
kTRUE);
 
  113      Log() << kFATAL << 
"Wrong dimension of event variable!" << 
Endl;
 
  119   cell->
GetHcub(cellPosi, cellSize);
 
  128      cellval = GetAverageNeighborsValue(foam, txvec, cv);
 
  132      std::vector<Float_t> ntxvec(txvec);
 
  136      mindist = (txvec[dim] - cellPosi[dim]) / cellSize[dim];
 
  138         ntxvec[dim] = cellPosi[dim] - xoffset;
 
  139         mindistcell = foam->
FindCell(ntxvec); 
 
  141         mindist = 1 - mindist;
 
  142         ntxvec[dim] = cellPosi[dim] + cellSize[dim] + xoffset;
 
  143         mindistcell = foam->
FindCell(ntxvec); 
 
  150         result += cellval        * (0.5 + mindist);
 
  151         result += mindistcellval * (0.5 - mindist);
 
  155   if (norm == 0) 
return cellval;   
 
  156   else         return result / norm; 
 
  171                                                          std::vector<Float_t> &txvec,
 
  181   cell->
GetHcub(cellPosi, cellSize); 
 
  185      std::vector<Float_t> ntxvec(txvec);
 
  190      ntxvec[dim] = cellPosi[dim] - xoffset;
 
  198      ntxvec[dim] = cellPosi[dim] + cellSize[dim] + xoffset;
 
  199      right_cell  = foam->
FindCell(ntxvec);
 
  206   if (norm > 0)  
result /= norm; 
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t result
 
void GetHcub(PDEFoamVect &, PDEFoamVect &) const
Provides size and position of the cell These parameter are calculated by analyzing information in all...
 
This class is the abstract kernel interface for PDEFoam.
 
This PDEFoam kernel estimates a cell value for a given event by weighting with cell values of the nea...
 
virtual Float_t Estimate(PDEFoam *, std::vector< Float_t > &, ECellValue)
Linear neighbors kernel estimator.
 
Float_t WeightLinNeighbors(PDEFoam *, std::vector< Float_t > &, ECellValue, Bool_t)
Returns the cell value, corresponding to 'txvec' (foam coordinates [0,1]), weighted by the neighbor c...
 
Float_t GetAverageNeighborsValue(PDEFoam *, std::vector< Float_t > &, ECellValue)
This function returns the average value 'cv' of only nearest neighbor cells.
 
PDEFoamKernelLinN()
Default constructor for streamer.
 
Implementation of PDEFoam.
 
virtual Float_t GetCellValue(const std::vector< Float_t > &xvec, ECellValue cv, PDEFoamKernelBase *)
This function finds the cell, which corresponds to the given untransformed event vector 'xvec' and re...
 
virtual Bool_t CellValueIsUndefined(PDEFoamCell *)
Returns true, if the value of the given cell is undefined.
 
PDEFoamCell * FindCell(const std::vector< Float_t > &) const
Find cell that contains 'xvec' (in foam coordinates [0,1]).
 
MsgLogger & Endl(MsgLogger &ml)