Pushing everything again, accidentally deleted my remote repository

This commit is contained in:
jakob.schratter 2025-12-09 22:06:13 +01:00
commit 1bee3e8e5b
101 changed files with 9428 additions and 0 deletions

View file

@ -0,0 +1,23 @@
#pragma once
#include <vector>
/**
This function calculates arithmetic mean, geometric mean and harmonic mean of three integers.
@param[in] a first integer
@param[in] b second integer
@param[in] c third integer
@param[out] am arithmetic mean
@param[out] gm geometric mean
@param[out] hm harmonic mean
*/
void calculate_means(int a, int b, int c, double &am, double &gm, double &hm);
/**
This function calculates arithmetic mean, geometric mean and harmonic mean of an integer vector.
@param[in] numbers vector containing integers
@param[out] am arithmetic mean
@param[out] gm geometric mean
@param[out] hm harmonic mean
*/
void calculate_means(std::vector<int> numbers, double &am, double &gm, double &hm);