26 lines
894 B
C++
26 lines
894 B
C++
#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
|