Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Simox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Florian Leander Singer
Simox
Commits
158d57b5
Commit
158d57b5
authored
4 years ago
by
Rainer Kartmann
Browse files
Options
Downloads
Patches
Plain Diff
Rename to Histogram1D
parent
f19f7c0b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SimoxUtility/math/statistics/Histogram1D.h
+10
-10
10 additions, 10 deletions
SimoxUtility/math/statistics/Histogram1D.h
with
10 additions
and
10 deletions
SimoxUtility/math/statistics/Histogram1D.h
+
10
−
10
View file @
158d57b5
...
...
@@ -8,29 +8,29 @@ namespace simox::math
{
/**
* @brief Histogram for one-dimensional float data.
* @brief Histogram
1D
for one-dimensional float data.
*/
class
Histogram
class
Histogram
1D
{
public:
/// No initialization constructor.
Histogram
();
Histogram
1D
();
/// Construct with the given data.
/// Minimum and maximum are derived automatically.
Histogram
(
const
std
::
vector
<
float
>&
data
,
std
::
size_t
numBins
=
128
);
Histogram
1D
(
const
std
::
vector
<
float
>&
data
,
std
::
size_t
numBins
=
128
);
/// Construct with the given data and given limits.
Histogram
(
const
std
::
vector
<
float
>&
data
,
float
min
,
float
max
,
std
::
size_t
numBins
=
128
);
Histogram
1D
(
const
std
::
vector
<
float
>&
data
,
float
min
,
float
max
,
std
::
size_t
numBins
=
128
);
/// Set the number of bins and set them to 0.
void
resetBins
(
std
::
size_t
numBins
);
/// Insert the given value into the
h
istogram.
/// Insert the given value into the
H
istogram
1D
.
void
insert
(
float
value
);
/// Inserts the given values into the
h
istogram.
/// Inserts the given values into the
H
istogram
1D
.
void
insert
(
const
std
::
vector
<
float
>&
value
);
/// Set the limits.
...
...
@@ -67,7 +67,7 @@ namespace simox::math
/**
* @brief Applies a median filter to the
h
istogram bins.
* @brief Applies a median filter to the
H
istogram
1D
bins.
*
* The size specifies the number of neighours (in each direction)
* considered.
...
...
@@ -79,8 +79,8 @@ namespace simox::math
void
applyMedianFilter
(
std
::
size_t
size
=
2
);
/// Streams a CVS-like description of the
h
istogram containing the bin data.
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
Histogram
&
histo
);
/// Streams a CVS-like description of the
H
istogram
1D
containing the bin data.
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
Histogram
1D
&
histo
);
private:
...
...
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