TrigoFletcherFunction Class Reference

Inheritance diagram for TrigoFletcherFunction:

ROOT::Math::IGradientFunctionMultiDim ROOT::Math::IGradientFunctionMultiDim ROOT::Math::IGradientMultiDim ROOT::Math::IBaseFunctionMultiDim ROOT::Math::IGradientMultiDim ROOT::Math::IBaseFunctionMultiDim ROOT::Math::IGradientMultiDim ROOT::Math::IBaseFunctionMultiDim ROOT::Math::IGradientMultiDim ROOT::Math::IBaseFunctionMultiDim List of all members.

Public Member Functions

 TrigoFletcherFunction (unsigned int dim)
unsigned int NDim () const
ROOT::Math::IMultiGenFunctionClone () const
void StartPoints (double *x, double *s)
const doubleTrueMinimum () const
void Gradient (const double *x, double *g) const
 TrigoFletcherFunction (unsigned int dim)
unsigned int NDim () const
ROOT::Math::IMultiGenFunctionClone () const
void StartPoints (double *x, double *s)
const doubleTrueMinimum () const
void Gradient (const double *x, double *g) const

Private Member Functions

double DoEval (const double *x) const
double DoDerivative (const double *x, unsigned int i) const
double DoEval (const double *x) const
double DoDerivative (const double *x, unsigned int i) const

Private Attributes

unsigned int fDim
TMatrixD A
TMatrixD B
TVectorD x0
TVectorD sx0
TVectorD cx0
TVectorD sx
TVectorD cx
TVectorD v0
TVectorD v
TVectorD r

Detailed Description

Definition at line 96 of file testMinim.cxx.


Constructor & Destructor Documentation

TrigoFletcherFunction::TrigoFletcherFunction ( unsigned int  dim  )  [inline]

Definition at line 101 of file testMinim.cxx.

References A, B, cos(), cx, cx0, fDim, i, int, j, TMath::Pi(), r, TVectorT< Element >::Randomize(), TMatrixTBase< Element >::Randomize(), TMatrixT< Element >::ResizeTo(), TVectorT< Element >::ResizeTo(), seed, sin(), sx, sx0, v, v0, and x0.

Referenced by Clone().

TrigoFletcherFunction::TrigoFletcherFunction ( unsigned int  dim  )  [inline]

Definition at line 104 of file testNewMinimizer.cxx.

References A, B, cos(), cx, cx0, fDim, i, int, j, TMath::Pi(), r, TVectorT< Element >::Randomize(), TMatrixTBase< Element >::Randomize(), TMatrixT< Element >::ResizeTo(), TVectorT< Element >::ResizeTo(), seed, sin(), sx, sx0, v, v0, and x0.


Member Function Documentation

unsigned int TrigoFletcherFunction::NDim (  )  const [inline, virtual]

Retrieve the dimension of the function

Implements ROOT::Math::IBaseFunctionMultiDim.

Definition at line 131 of file testMinim.cxx.

References fDim.

ROOT::Math::IMultiGenFunction* TrigoFletcherFunction::Clone (  )  const [inline, virtual]

Clone a function. Each derived class must implement his version of the Clone method

Implements ROOT::Math::IBaseFunctionMultiDim.

Definition at line 133 of file testMinim.cxx.

References TrigoFletcherFunction().

void TrigoFletcherFunction::StartPoints ( double x,
double s 
) [inline]

Definition at line 141 of file testMinim.cxx.

References fDim, i, TMath::Pi(), pi, rndm, TRandom::Uniform(), and x0.

Referenced by testTrigoFletcher().

const double* TrigoFletcherFunction::TrueMinimum (  )  const [inline]

Definition at line 156 of file testMinim.cxx.

References TVectorT< Element >::GetMatrixArray(), and x0.

Referenced by TrueMinimum().

void TrigoFletcherFunction::Gradient ( const double x,
double g 
) const [inline, virtual]

Evaluate all the vector of function derivatives (gradient) at a point x. Derived classes must re-implement it if more efficient than evaluting one at a time

Reimplemented from ROOT::Math::IGradientFunctionMultiDim.

Definition at line 161 of file testMinim.cxx.

References A, B, cos(), cx, fDim, gNCall2, i, k, r, sin(), sx, v, and v0.

Referenced by DoDerivative().

double TrigoFletcherFunction::DoEval ( const double x  )  const [inline, private, virtual]

Implementation of the evaluation function. Must be implemented by derived classes

Implements ROOT::Math::IBaseFunctionMultiDim.

Definition at line 213 of file testMinim.cxx.

References A, B, cos(), gNCall, i, sin(), sx, and v0.

double TrigoFletcherFunction::DoDerivative ( const double x,
unsigned int  i 
) const [inline, private, virtual]

function to evaluate the derivative with respect each coordinate. To be implemented by the derived class

Implements ROOT::Math::IGradientMultiDim.

Definition at line 229 of file testMinim.cxx.

References g, and Gradient().

unsigned int TrigoFletcherFunction::NDim (  )  const [inline, virtual]

Retrieve the dimension of the function

Implements ROOT::Math::IBaseFunctionMultiDim.

Definition at line 134 of file testNewMinimizer.cxx.

References fDim.

ROOT::Math::IMultiGenFunction* TrigoFletcherFunction::Clone (  )  const [inline, virtual]

Clone a function. Each derived class must implement his version of the Clone method

Implements ROOT::Math::IBaseFunctionMultiDim.

Definition at line 136 of file testNewMinimizer.cxx.

References TrigoFletcherFunction().

void TrigoFletcherFunction::StartPoints ( double x,
double s 
) [inline]

Definition at line 144 of file testNewMinimizer.cxx.

References fDim, i, TMath::Pi(), pi, rndm, TRandom::Uniform(), and x0.

const double* TrigoFletcherFunction::TrueMinimum (  )  const [inline]

Definition at line 159 of file testNewMinimizer.cxx.

References TVectorT< Element >::GetMatrixArray(), and x0.

void TrigoFletcherFunction::Gradient ( const double x,
double g 
) const [inline, virtual]

Evaluate all the vector of function derivatives (gradient) at a point x. Derived classes must re-implement it if more efficient than evaluting one at a time

Reimplemented from ROOT::Math::IGradientFunctionMultiDim.

Definition at line 164 of file testNewMinimizer.cxx.

References A, B, cos(), cx, fDim, gNCall2, i, k, r, sin(), sx, v, and v0.

double TrigoFletcherFunction::DoEval ( const double x  )  const [inline, private, virtual]

Implementation of the evaluation function. Must be implemented by derived classes

Implements ROOT::Math::IBaseFunctionMultiDim.

Definition at line 216 of file testNewMinimizer.cxx.

References A, B, cos(), gNCall, i, sin(), sx, and v0.

double TrigoFletcherFunction::DoDerivative ( const double x,
unsigned int  i 
) const [inline, private, virtual]

function to evaluate the derivative with respect each coordinate. To be implemented by the derived class

Implements ROOT::Math::IGradientMultiDim.

Definition at line 232 of file testNewMinimizer.cxx.

References g, and Gradient().


Member Data Documentation

unsigned int TrigoFletcherFunction::fDim [private]

Definition at line 237 of file testMinim.cxx.

Referenced by Gradient(), NDim(), StartPoints(), and TrigoFletcherFunction().

TMatrixD TrigoFletcherFunction::A [private]

Definition at line 239 of file testMinim.cxx.

Referenced by DoEval(), Gradient(), and TrigoFletcherFunction().

TMatrixD TrigoFletcherFunction::B [private]

Definition at line 240 of file testMinim.cxx.

Referenced by DoEval(), Gradient(), and TrigoFletcherFunction().

TVectorD TrigoFletcherFunction::x0 [private]

Definition at line 241 of file testMinim.cxx.

Referenced by StartPoints(), TrigoFletcherFunction(), and TrueMinimum().

TVectorD TrigoFletcherFunction::sx0 [mutable, private]

Definition at line 242 of file testMinim.cxx.

Referenced by TrigoFletcherFunction().

TVectorD TrigoFletcherFunction::cx0 [mutable, private]

Definition at line 243 of file testMinim.cxx.

Referenced by TrigoFletcherFunction().

TVectorD TrigoFletcherFunction::sx [mutable, private]

Definition at line 244 of file testMinim.cxx.

Referenced by DoEval(), Gradient(), and TrigoFletcherFunction().

TVectorD TrigoFletcherFunction::cx [mutable, private]

Definition at line 245 of file testMinim.cxx.

Referenced by Gradient(), and TrigoFletcherFunction().

TVectorD TrigoFletcherFunction::v0 [mutable, private]

Definition at line 246 of file testMinim.cxx.

Referenced by DoEval(), Gradient(), and TrigoFletcherFunction().

TVectorD TrigoFletcherFunction::v [mutable, private]

Definition at line 247 of file testMinim.cxx.

Referenced by Gradient(), and TrigoFletcherFunction().

TVectorD TrigoFletcherFunction::r [mutable, private]

Definition at line 248 of file testMinim.cxx.

Referenced by Gradient(), and TrigoFletcherFunction().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:46:12 2011 for ROOT_528-00b_version by  doxygen 1.5.1