85 Log() << kFATAL <<
"COPY CONSTRUCTOR NOT IMPLEMENTED" <<
Endl;
96 std::vector<Float_t> values = ev->
GetValues();
98 std::vector<Float_t> targets = ev->
GetTargets();
116 if (!(
fCells[iCell]->GetStat()))
160 return kernel->
Estimate(
this, txvec, cv);
185 cell->
GetHcub(cellPosi, cellSize);
189 std::vector<Float_t> ntxvec(txvec);
194 ntxvec[dim] = cellPosi[dim] - xoffset;
202 ntxvec[dim] = cellPosi[dim] + cellSize[dim] + xoffset;
210 if (norm > 0) result /=
norm;
PDEFoamTarget()
Default constructor for streamer, user should not use it.
MsgLogger & Endl(MsgLogger &ml)
This class is the abstract kernel interface for PDEFoam.
Bool_t CellValueIsUndefined(PDEFoamCell *cell)
Returns true, if the target error equals -1, as set in Finalize() in case of no events in the cell...
Float_t VarTransform(Int_t idim, Float_t x) const
virtual void FillFoamCells(const Event *ev, Float_t wt)
This function fills an event into the discriminant PDEFoam.
Double_t GetCellElement(const PDEFoamCell *cell, UInt_t i) const
Returns cell element i of cell 'cell'.
void SetCellElement(PDEFoamCell *cell, UInt_t i, Double_t value)
Set cell element i of cell to value.
virtual Float_t Estimate(PDEFoam *, std::vector< Float_t > &, ECellValue)=0
Float_t GetAverageNeighborsValue(std::vector< Float_t > &, ECellValue)
This function returns the average value 'cv' of only nearest neighbor cells.
PDEFoamCell * FindCell(const std::vector< Float_t > &) const
Find cell that contains 'xvec' (in foam coordinates [0,1]).
std::vector< Float_t > & GetTargets()
Implementation of PDEFoam.
virtual void Finalize()
Calculate average cell target in every cell and save them to the cell.
This PDEFoam variant stores in every cell the average target fTarget (see the Constructor) as well as...
void GetHcub(PDEFoamVect &, PDEFoamVect &) const
Provides size and position of the cell These parameter are calculated by analyzing information in all...
Abstract ClassifierFactory template that handles arbitrary types.
std::vector< Float_t > & GetValues()
Double_t Sqrt(Double_t x)
double norm(double *x, double *p)
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...