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
eaea1f8e
Commit
eaea1f8e
authored
Dec 20, 2020
by
Pierre Aubert
Browse files
Add branch test
parent
e6f13e43
Pipeline
#96673
passed with stages
in 40 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 @
eaea1f8e
...
...
@@ -40,9 +40,11 @@ bool testPHistogram(){
PHistogram
<
float
>
emptyHist
;
std
::
cout
<<
emptyHist
<<
std
::
endl
;
emptyHist
.
normalize
();
PHistogram
<
float
>
singleValueHist
(
1lu
);
std
::
cout
<<
singleValueHist
<<
std
::
endl
;
emptyHist
.
normalize
();
return
b
;
}
...
...
@@ -57,6 +59,7 @@ bool testPHistogram2(){
float
tabValue
[]
=
{
1.0
f
,
4.0
f
,
6.0
f
,
3.0
f
,
6.0
f
,
6.0
f
,
7.0
f
,
4.0
f
,
3.0
f
,
7.0
f
,
5.0
f
,
3.0
f
,
5.0
f
,
6.0
f
};
hist
.
addValue
(
NULL
,
0lu
);
hist
.
addValue
(
NULL
,
42lu
);
hist
.
setValueRange
(
tabValue
,
14lu
);
hist
.
addValue
(
tabValue
,
14lu
);
...
...
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