git-svn-id: http://moon:8086/svn/software/trunk/projects/mpsk_rx_gui@2 b431acfa-c32f-4a4a-93f1-934dc6c82436
31 lines
496 B
C++
31 lines
496 B
C++
#pragma once
|
|
#include <cstdint>
|
|
#include <vector>
|
|
#include <deque>
|
|
|
|
using namespace std;
|
|
|
|
class MinMaxLemire
|
|
{
|
|
public:
|
|
MinMaxLemire(uint32_t N);
|
|
~MinMaxLemire();
|
|
void process(vector<float> & array);
|
|
vector<float> & getmaxvalues()
|
|
{
|
|
return maxvalues;
|
|
}
|
|
vector<float> & getminvalues()
|
|
{
|
|
return minvalues;
|
|
}
|
|
|
|
private:
|
|
uint32_t width;
|
|
vector<float> minvalues;
|
|
vector<float> maxvalues;
|
|
deque<int32_t> maxfifo, minfifo;
|
|
|
|
};
|
|
|