Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F10881022
AsinhTransform1D.hh
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
AsinhTransform1D.hh
View Options
#ifndef NPSTAT_ASINHTRANSFORM1D_HH_
#define NPSTAT_ASINHTRANSFORM1D_HH_
/*!
// \file AsinhTransform1D.hh
//
// \brief Asinh 1-d coordinate transform, as in Johnson's S_U curve
//
// Author: I. Volobouev
//
// April 2015
*/
#include
"npstat/stat/AbsDistributionTransform1D.hh"
namespace
npstat
{
class
AsinhTransform1D
:
public
AbsDistributionTransform1D
{
public
:
AsinhTransform1D
(
double
delta
,
double
lambda
,
double
gamma
,
double
xi
);
inline
virtual
~
AsinhTransform1D
()
{}
inline
virtual
AsinhTransform1D
*
clone
()
const
{
return
new
AsinhTransform1D
(
*
this
);}
double
transformForward
(
double
x
,
double
*
dydx
)
const
;
double
transformBack
(
double
y
)
const
;
inline
bool
isIncreasing
()
const
{
return
true
;}
//@{
/** Prototype needed for I/O */
inline
virtual
gs
::
ClassId
classId
()
const
{
return
gs
::
ClassId
(
*
this
);}
virtual
bool
write
(
std
::
ostream
&
)
const
;
//@}
static
inline
const
char
*
classname
()
{
return
"npstat::AsinhTransform1D"
;}
static
inline
unsigned
version
()
{
return
1
;}
static
AsinhTransform1D
*
read
(
const
gs
::
ClassId
&
id
,
std
::
istream
&
is
);
protected
:
virtual
bool
isEqual
(
const
AbsDistributionTransform1D
&
)
const
;
private
:
inline
void
setParameterChecked
(
const
unsigned
which
,
const
double
value
)
{
params_
[
which
]
=
value
;}
inline
void
setAllParametersChecked
(
const
double
*
p
)
{
for
(
unsigned
i
=
0
;
i
<
4U
;
++
i
)
{
params_
[
i
]
=
p
[
i
];}}
inline
double
getParameterChecked
(
const
unsigned
which
)
const
{
return
params_
[
which
];}
double
params_
[
4
];
};
}
#endif
// NPSTAT_ASINHTRANSFORM1D_HH_
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sat, May 3, 5:45 AM (4 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4982814
Default Alt Text
AsinhTransform1D.hh (1 KB)
Attached To
rNPSTATSVN npstatsvn
Event Timeline
Log In to Comment