Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hpp-statistics
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Humanoid Path Planner
hpp-statistics
Commits
9e2f837d
Commit
9e2f837d
authored
9 years ago
by
Joseph Mirabel
Committed by
Joseph Mirabel
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Use std::size_t instead of size_t. Remove src/bin.cc in CMakeLists.txt
parent
293949e9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/hpp/statistics/bin.hh
+5
-5
5 additions, 5 deletions
include/hpp/statistics/bin.hh
src/CMakeLists.txt
+0
-1
0 additions, 1 deletion
src/CMakeLists.txt
with
5 additions
and
6 deletions
include/hpp/statistics/bin.hh
+
5
−
5
View file @
9e2f837d
...
@@ -36,21 +36,21 @@ namespace hpp {
...
@@ -36,21 +36,21 @@ namespace hpp {
{
{
public:
public:
/// Return the number of element in the bin.
/// Return the number of element in the bin.
size_t
freq
()
const
const
std
::
size_t
&
freq
()
const
{
{
return
freq_
;
return
freq_
;
}
}
/// Add an occurence
/// Add an occurence
/// \return The frequency after increment;
/// \return The frequency after increment;
size_t
operator
++
()
std
::
size_t
operator
++
()
{
{
return
++
freq_
;
return
++
freq_
;
}
}
/// Add an occurence
/// Add an occurence
/// \return The frequency before increment;
/// \return The frequency before increment;
size_t
operator
++
(
int
)
std
::
size_t
operator
++
(
int
)
{
{
return
freq_
++
;
return
freq_
++
;
}
}
...
@@ -70,7 +70,7 @@ namespace hpp {
...
@@ -70,7 +70,7 @@ namespace hpp {
private
:
private
:
/// The number of occurence.
/// The number of occurence.
size_t
freq_
;
std
::
size_t
freq_
;
};
};
inline
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
hpp
::
statistics
::
Bin
&
b
)
inline
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
hpp
::
statistics
::
Bin
&
b
)
...
@@ -93,7 +93,7 @@ namespace hpp {
...
@@ -93,7 +93,7 @@ namespace hpp {
/// \param bin a Bin for which only the value is useful.
/// \param bin a Bin for which only the value is useful.
/// \note It searches for the equivalent Bin is the set and
/// \note It searches for the equivalent Bin is the set and
/// returns the frequency of the result.
/// returns the frequency of the result.
virtual
size_t
freq
(
const
T
&
bin
)
const
;
virtual
std
::
size_t
freq
(
const
T
&
bin
)
const
;
/// Return the relative frequency of a Bin.
/// Return the relative frequency of a Bin.
/// \param bin a Bin for which only the value is useful.
/// \param bin a Bin for which only the value is useful.
...
...
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
0
−
1
View file @
9e2f837d
...
@@ -20,7 +20,6 @@
...
@@ -20,7 +20,6 @@
SET
(
LIBRARY_NAME
${
PROJECT_NAME
}
)
SET
(
LIBRARY_NAME
${
PROJECT_NAME
}
)
ADD_LIBRARY
(
${
LIBRARY_NAME
}
SHARED
ADD_LIBRARY
(
${
LIBRARY_NAME
}
SHARED
bin.cc
success-bin.cc
success-bin.cc
)
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment