comparison src/DynamicVector.h @ 2:5581023e0de4

Added separate CannamMidiFileLoader class to handle the loading in.
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Fri, 19 Aug 2011 01:26:40 +0100
parents 1a32ce016bb9
children 4a8e6a6cd224
comparison
equal deleted inserted replaced
1:1a32ce016bb9 2:5581023e0de4
23 void renormalise(); 23 void renormalise();
24 void translateDistribution(int translationIndex); 24 void translateDistribution(int translationIndex);
25 typedef std::vector<double> DoubleVector; 25 typedef std::vector<double> DoubleVector;
26 DoubleVector array; 26 DoubleVector array;
27 double getMaximum(); 27 double getMaximum();
28 double getIntegratedEstimate();
29
28 void drawVector(const int& minIndex, const int& maxIndex); 30 void drawVector(const int& minIndex, const int& maxIndex);
29 void drawConstrainedVector(const int& minIndex, const int& maxIndex, const int& minScreenIndex, const int& maxScreenIndex); 31 void drawConstrainedVector(const int& minIndex, const int& maxIndex, const int& minScreenIndex, const int& maxScreenIndex);
30 32
31 void addConstant(double value); 33 void addConstant(double value);
32 void addGaussianShape(double mean, double stddev, double factor); 34 void addGaussianShape(double mean, double stddev, double factor);
35 void addTriangularShape(double mean, double width, double factor);
33 void addToIndex(int index, double constant); 36 void addToIndex(int index, double constant);
34 37
35 void doProduct(DynamicVector& arrayOne, DynamicVector& arrayTwo); 38 void doProduct(DynamicVector& arrayOne, DynamicVector& arrayTwo);
36 39
37 double getIndexInRealTerms(const int& index); 40 double getIndexInRealTerms(const int& index);