source: util/src/average.hpp@ e34098

Last change on this file since e34098 was 5a84ee, checked in by Frederik Heber <heber@…>, 15 years ago

Rewrite of average.cpp and added first UnitTest.

  • average.cpp is now called averager.cpp and uses a function AverageColumns().
  • new function AverageColumns(): takes an input streamd and a set of column indices for which averages shall be computed
  • Introduced unit tests to Utils part of ESPACK:
    • new unit test AverageColumnsUnitTest testing the above.
    • Makefile generation introduced into configure.ac
    • subdir forked in Makefile.am
  • Property mode set to 100644
File size: 699 bytes
Line 
1/*
2 * average.hpp
3 *
4 * Created on: Apr 15, 2010
5 * Author: heber
6 */
7
8#ifndef AVERAGE_HPP_
9#define AVERAGE_HPP_
10
11/*********************************************** includes ***********************************/
12
13// include config.h
14#ifdef HAVE_CONFIG_H
15#include <config.h>
16#endif
17
18#include <fstream>
19
20#include <set>
21#include <map>
22
23/********************************************** definitions *********************************/
24
25typedef set<int> IndexSet;
26typedef map<int, pair<double,double> > MeanErrorMap;
27
28/********************************************** declarations *******************************/
29
30MeanErrorMap *AverageColumns(istream &data, IndexSet Columns);
31
32
33#endif /* AVERAGE_HPP_ */
Note: See TracBrowser for help on using the repository browser.