90 Log() <<
kFATAL <<
"COPY CONSTRUCTOR NOT IMPLEMENTED" <<
Endl;
101 std::vector<Float_t> values = ev->
GetValues();
103 std::vector<Float_t> targets = ev->
GetTargets();
121 if (!(
fCells[iCell]->GetStat()))
165 return kernel->
Estimate(
this, txvec, cv);
190 cell->
GetHcub(cellPosi, cellSize);
194 std::vector<Float_t> ntxvec(txvec);
199 ntxvec[dim] = cellPosi[dim] - xoffset;
207 ntxvec[dim] = cellPosi[dim] + cellSize[dim] + xoffset;
215 if (norm > 0) result /=
norm;
PDEFoamTarget()
Default constructor for streamer, user should not use it.
MsgLogger & Endl(MsgLogger &ml)
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...
virtual void FillFoamCells(const Event *ev, Float_t wt)
This function fills an event into the discriminant PDEFoam.
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.
std::vector< Float_t > & GetTargets()
virtual void Finalize()
Calculate average cell target in every cell and save them to the cell.
Double_t GetCellElement(const PDEFoamCell *cell, UInt_t i) const
Returns cell element i of cell 'cell'.
Float_t VarTransform(Int_t idim, Float_t x) const
Abstract ClassifierFactory template that handles arbitrary types.
std::vector< Float_t > & GetValues()
PDEFoamCell * FindCell(const std::vector< Float_t > &) const
Find cell that contains 'xvec' (in foam coordinates [0,1]).
Double_t Sqrt(Double_t x)
void GetHcub(PDEFoamVect &, PDEFoamVect &) const
Provides size and position of the cell These parameter are calculated by analyzing information in all...
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...