Serial-Studio/lib/QRealFourier/sources/qfouriercalculator.cpp
2024-08-10 12:58:21 -05:00

68 lines
1.8 KiB
C++

/***********************************************************************
qfouriercalculator.cpp - Source file for QFourierCalculator
Abstract class providing a common interface for calculating FFTs of
fixed or variable size.
************************************************************************
This file is part of QRealFourier.
QRealFourier is free software: you can redistribute it and/or modify it
under the terms of the Lesser GNU General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Foobar is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the Lesser GNU General Public
License for more details.
You should have received a copy of the Lesser GNU General Public License
along with Foobar. If not, see <http://www.gnu.org/licenses/>.
************************************************************************
Copyright © 2012 - 2013 Christoph Stallmann, University of Pretoria
Developer: Christoph Stallmann
University of Pretoria
Department of Computer Science
http://www.visore.org
http://sourceforge.net/projects/qrealfourier
http://github.com/visore/QRealFourier
qrealfourier@visore.org
qrealfourier@gmail.com
***********************************************************************/
#include "qfouriercalculator.h"
QFourierCalculator::QFourierCalculator()
{
mInput = 0;
mOutput = 0;
mSize = 0;
}
QFourierCalculator::~QFourierCalculator() {}
void QFourierCalculator::setData(float input[], float output[])
{
mInput = input;
mOutput = output;
}
void QFourierCalculator::setSize(int size)
{
mSize = size;
}
int QFourierCalculator::size()
{
return mSize;
}