Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F19251145
test_CircularMapper1d.cc
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
440 B
Referenced Files
None
Subscribers
None
test_CircularMapper1d.cc
View Options
#include
<sstream>
#include
"UnitTest++.h"
#include
"test_utils.hh"
#include
"npstat/nm/CircularMapper1d.hh"
using
namespace
npstat
;
using
namespace
std
;
namespace
{
TEST
(
CircularMapper1d
)
{
const
double
per
=
M_PI
;
CircularMapper1d
mapper
(
0.1
,
0.01
,
per
);
for
(
int
i
=-
1000
;
i
<
1000
;
++
i
)
{
double
result
=
mapper
(
i
);
CHECK
(
std
::
abs
(
result
)
<=
per
/
2.0
);
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Tue, Sep 30, 5:48 AM (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6552946
Default Alt Text
test_CircularMapper1d.cc (440 B)
Attached To
Mode
rNPSTATSVN npstatsvn
Attached
Detach File
Event Timeline
Log In to Comment