Dateien nach „BSP_1_B“ hochladen

This commit is contained in:
Georg Thomas Mandl 2025-10-22 23:13:56 +02:00
commit a4c502fc4d
5 changed files with 702 additions and 0 deletions

26
BSP_1_B/bsp_1_b.h Normal file
View file

@ -0,0 +1,26 @@
#ifndef BSP_1_B_H_INCLUDED
#define BSP_1_B_H_INCLUDED
#include <iostream>
#include <vector>
/** \brief Funktion zur Berechnung des arithmetischen, geometrischen und harmonischen Mittels und der Standardabweichung aus den Eintraegen eines gegebenen Vektors
*
* \param[in,out] x Vektor mit Eintraegen
* \param[in,out] a arithmetisches Mittel
* \param[in,out] g geometrisches Mittel
* \param[in,out] h harmonisches Mittel
* \param[in,out] d Standardabweichung (deviation)
* \return
*
*/
void meandevvec(std::vector<short int> x, float &a, float &g, float &h, float &d);
void fill_vector(std::istream& istr, std::vector<short int>& v);
void read_vector_from_file(const std::string& file_name, std::vector<short int>& v);
void write_vector_to_file(const std::string& file_name, const std::vector<float>& v);
#endif // BSP_1_B_H_INCLUDED