Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CTA-LAPP
PHOENIX_LIBS
PhoenixMath
Commits
9973b242
Commit
9973b242
authored
Dec 20, 2020
by
Pierre Aubert
Browse files
Add branch test
parent
eaea1f8e
Pipeline
#96674
passed with stages
in 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
TESTS/TEST_PHISTOGRAM/main.cpp
TESTS/TEST_PHISTOGRAM/main.cpp
+3
-0
No files found.
TESTS/TEST_PHISTOGRAM/main.cpp
View file @
9973b242
...
...
@@ -15,6 +15,7 @@ bool testPHistogram(){
PHistogram
<
float
>
hist
(
-
1.0
f
,
1.0
f
,
10lu
);
hist
.
reset
();
hist
.
normalize
();
for
(
size_t
i
(
0lu
);
i
<
1000lu
;
++
i
){
hist
.
addValue
((((
float
)(
i
*
27lu
%
19
))
-
9.0
)
/
2.0
f
);
}
...
...
@@ -60,7 +61,9 @@ bool testPHistogram2(){
hist
.
addValue
(
NULL
,
0lu
);
hist
.
addValue
(
NULL
,
42lu
);
hist
.
setValueRange
(
NULL
,
42lu
);
hist
.
setValueRange
(
tabValue
,
14lu
);
hist
.
addValue
(
tabValue
,
14lu
);
hist
.
setValueRange
(
tabValue
,
0lu
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment