mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.Eigen_demo: Tiny fixes
git-svn-id: svn://ultimatepp.org/upp/trunk@13548 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
6bb2664c59
commit
91af55d45b
2 changed files with 4 additions and 3 deletions
|
|
@ -29,7 +29,7 @@ struct SerialTest {
|
|||
};
|
||||
|
||||
CONSOLE_APP_MAIN
|
||||
{
|
||||
{
|
||||
// http://eigen.tuxfamily.org/dox/TutorialMatrixClass.html
|
||||
Cout() << "\n\nTutorial page 1 - The Matrix class";
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ void FFTTests()
|
|||
|
||||
int numData = 8000;
|
||||
double samplingFrecuency = 14;
|
||||
String csvSep = ";";
|
||||
|
||||
// Filling the data series
|
||||
VectorXd timebuf(numData);
|
||||
|
|
@ -34,7 +33,7 @@ void FFTTests()
|
|||
fft.SetFlag(fft.HalfSpectrum);
|
||||
fft.fwd(freqbuf, timebuf);
|
||||
|
||||
// Filter the FFT. Frequemcies between 1/25 and 1/35 Hz are removed
|
||||
// Filter the FFT. Frequencies between 1/25 and 1/35 Hz are removed
|
||||
// Original FFT is not changed for saving it later
|
||||
VectorXcd freqbuf2(freqbuf.size());
|
||||
{
|
||||
|
|
@ -52,6 +51,8 @@ void FFTTests()
|
|||
VectorXd timebuf2(numData);
|
||||
fft.inv(timebuf2, freqbuf2);
|
||||
|
||||
String csvSep = ";";
|
||||
|
||||
// Saving original and filtered FFT
|
||||
{
|
||||
String str;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue