Browse Source

added new array - peakFreqArray

master
Никита 7 years ago
parent
commit
a694fb5902
  1. 3
      src/Graph.cpp
  2. 3
      src/Graph.h

3
src/Graph.cpp

@ -3,8 +3,9 @@
Graph::Graph (int graphSize, int graphUpdateRate) {
this->size = graphSize;
this->updateRate = graphUpdateRate; // Раз в секунду
source = new int[size];
array = new int[size];
fft = new int[size/2];
source = new int[size];
peakFreqArray = new double[size/2];
counter = 0;
}

3
src/Graph.h

@ -2,9 +2,10 @@ class Graph {
public:
int size;
int updateRate;
int * source;
int * array;
int * fft;
int * source;
double * peakFreqArray;
int counter;
Graph (int graphSize, int graphUpdateRate);

Loading…
Cancel
Save