Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
Uebung6
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Control and Cyber-Physical Systems (Public)
Programmierung in der Automatisierungstechnik
Uebung6
Commits
a9d50977
Commit
a9d50977
authored
5 months ago
by
Stauder, Lucas
Browse files
Options
Downloads
Patches
Plain Diff
feat: WiSe 2024/25
parent
f96c3f2c
Branches
master
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/histogram.hpp
+8
-0
8 additions, 0 deletions
src/histogram.hpp
src/outliers.hpp
+12
-0
12 additions, 0 deletions
src/outliers.hpp
src/statistics.hpp
+8
-0
8 additions, 0 deletions
src/statistics.hpp
with
28 additions
and
0 deletions
src/histogram.hpp
0 → 100644
+
8
−
0
View file @
a9d50977
#ifndef PROGAUT_UEBUNG6_HISTOGRAM_HPP
#define PROGAUT_UEBUNG6_HISTOGRAM_HPP
#include
<vector>
int
getMostFrequentValue
(
const
std
::
vector
<
int
>&
data
);
#endif // PROGAUT_UEBUNG6_HISTOGRAM_HPP
This diff is collapsed.
Click to expand it.
src/outliers.hpp
0 → 100644
+
12
−
0
View file @
a9d50977
#ifndef PROGAUT_UEBUNG6_OUTLIERS_HPP
#define PROGAUT_UEBUNG6_OUTLIERS_HPP
#include
<vector>
#include
<cstddef>
#include
<cmath>
double
findNMin
(
const
std
::
vector
<
double
>&
data
,
size_t
n
);
double
findNMax
(
const
std
::
vector
<
double
>&
data
,
size_t
n
);
std
::
vector
<
double
>
removeOutliers
(
std
::
vector
<
double
>
data
,
size_t
n
);
#endif // PROGAUT_UEBUNG6_OUTLIERS_HPP
This diff is collapsed.
Click to expand it.
src/statistics.hpp
0 → 100644
+
8
−
0
View file @
a9d50977
#ifndef PROGAUT_UEBUNG6_STATISTICS_HPP
#define PROGAUT_UEBUNG6_STATISTICS_HPP
#include
<vector>
#include
<cstddef>
size_t
countValuesNearMean
(
const
std
::
vector
<
double
>&
data
);
#endif // PROGAUT_UEBUNG6_STATISTICS_HPP
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