14 print(
"Failed to import numpy.")
26print(
"Use Functor1D for wrapping one-dimensional function and compute integral of f(x) = x^2-1")
32print(
"integral-1D value = ", value)
35 print(
"Error computing integral - computed value - different than expected, diff = ", value - expValue)
39print(
"\n\nUse Functor for wrapping a multi-dimensional function, the Rosenbrock Function r(x,y) and find its minimum")
46 return 100*tmp1*tmp1+tmp2*tmp2
55initialParams =
np.array([0.,0.], dtype=
'd')
59 print(
"Error minimizing Rosenbrock function ")
64print(
"\n\nUse GradFunctor1D for making a function object implementing f(x) and f'(x)")
76 print(
"ROOT has not Mathmore")
84 print(
"Found root value x0 : f(x0) = 0 : ", value)
86 print(
"Error finding a ROOT of function f(x)=x^2-1")
89print(
"\n\nUse GradFunctor for making a function object implementing f(x,y) and df(x,y)/dx and df(x,y)/dy")
96 return 2*(200*x*x*x-200*x*y+x-1)
98 return 200 * (y - x * x)
108 print(
"Error minimizing Rosenbrock function ")
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
void Print(GNN_Data &d, std::string txt="")
Fitter class, entry point for performing all type of fits.
Functor1D class for one-dimensional functions.
Documentation for class Functor class.
GradFunctor1D class for one-dimensional gradient functions.
GradFunctor class for Multidimensional gradient functions.
User Class for performing numerical integration of a function in one dimension.
User Class to find the Root of one dimensional functions.