Mercurial > hg > qm-dsp
comparison dsp/maths/MathUtilities.h @ 225:49844bc8a895
* Queen Mary C++ DSP library
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Wed, 05 Apr 2006 17:35:59 +0000 |
parents | |
children | 85a9e268a8c4 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 225:49844bc8a895 |
---|---|
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ | |
2 | |
3 /* | |
4 QM DSP Library | |
5 | |
6 Centre for Digital Music, Queen Mary, University of London. | |
7 This file copyright 2005-2006 Christian Landone. | |
8 All rights reserved. | |
9 */ | |
10 | |
11 #ifndef MATHUTILITIES_H | |
12 #define MATHUTILITIES_H | |
13 | |
14 #include <vector> | |
15 | |
16 class MathUtilities | |
17 { | |
18 public: | |
19 static double round( double x ); | |
20 static void getFrameMinMax( const double* data, unsigned int len, double* min, double* max ); | |
21 static double mean( const double* src, unsigned int len ); | |
22 static double sum( const double* src, unsigned int len ); | |
23 static double princarg( double ang ); | |
24 static double median( const double* src, unsigned int len ); | |
25 static double mod( double x, double y); | |
26 static void getAlphaNorm(const double *data, unsigned int len, unsigned int alpha, double* ANorm); | |
27 static double getAlphaNorm(const std::vector <double> &data, unsigned int alpha ); | |
28 }; | |
29 | |
30 #endif |