Loading [MathJax]/extensions/tex2jax.js
ROOT
6.10/09
Reference Guide
ROOT Home Page
Main Page
Tutorials
User's Classes
+
Namespaces
Namespace List
+
Namespace Members
+
All
<
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
<
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
u
w
x
+
Enumerations
a
e
f
g
m
p
t
w
y
+
Enumerator
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
w
+
All Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
x
y
+
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
w
y
+
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Properties
f
+
Related Functions
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Files
File List
+
File Members
+
All
1
2
3
4
5
6
7
8
9
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Enumerations
c
e
f
i
l
m
p
r
u
x
+
Enumerator
a
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
v
w
x
y
z
+
Macros
1
2
3
4
5
6
7
8
9
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
math
minuit2
src
SqrtLowParameterTransformation.cxx
Go to the documentation of this file.
1
// @(#)root/minuit2:$Id$
2
// Authors: M. Winkler, F. James, L. Moneta, A. Zsenei 2003-2005
3
4
/**********************************************************************
5
* *
6
* Copyright (c) 2005 LCG ROOT Math team, CERN/PH-SFT *
7
* *
8
**********************************************************************/
9
10
// Project : LCG
11
// Package : Minuit
12
// Author : Lorenzo.MONETA@cern.ch
13
// Created by: moneta at Thu Apr 8 10:26:22 2004
14
15
#include "
Minuit2/SqrtLowParameterTransformation.h
"
16
#include "
Minuit2/MnMachinePrecision.h
"
17
18
namespace
ROOT
{
19
20
namespace
Minuit2 {
21
22
23
24
double
SqrtLowParameterTransformation::Int2ext
(
double
value,
double
lower)
const
{
25
/// internal to external transformation
26
double
val = lower - 1. +
sqrt
( value*value + 1.);
27
return
val;
28
}
29
30
31
double
SqrtLowParameterTransformation::Ext2int
(
double
value,
double
lower,
const
MnMachinePrecision
& )
const
{
32
// external to internal transformation
33
double
yy = value - lower + 1.;
34
double
yy2 = yy*yy;
35
if
(yy2 < 1. )
36
return
0;
37
else
38
return
sqrt
( yy2 -1);
39
}
40
41
42
double
SqrtLowParameterTransformation::DInt2Ext
(
double
value,
double
)
const
{
43
// derivative of internal to external transofrmation : d (Int2Ext) / d Int
44
double
val = value/(
sqrt
( value*value + 1.) );
45
return
val;
46
}
47
48
}
// namespace Minuit2
49
50
}
// namespace ROOT
ROOT
Namespace for new ROOT classes and functions.
Definition:
StringConv.hxx:21
ROOT::Minuit2::MnMachinePrecision
determines the relative floating point arithmetic precision.
Definition:
MnMachinePrecision.h:27
sqrt
double sqrt(double)
MnMachinePrecision.h
ROOT::Minuit2::SqrtLowParameterTransformation::Ext2int
double Ext2int(double Value, double Lower, const MnMachinePrecision &) const
Definition:
SqrtLowParameterTransformation.cxx:31
ROOT::Minuit2::SqrtLowParameterTransformation::DInt2Ext
double DInt2Ext(double Value, double Lower) const
Definition:
SqrtLowParameterTransformation.cxx:42
SqrtLowParameterTransformation.h
ROOT::Minuit2::SqrtLowParameterTransformation::Int2ext
double Int2ext(double Value, double Lower) const
Definition:
SqrtLowParameterTransformation.cxx:24