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