// $Id: pca_test.cc 865 2007-09-10 19:41:04Z peter $
/*
Copyright (C) 2003 Daniel Dalevi
Copyright (C) 2004 Jari Häkkinen
Copyright (C) 2005 Peter Johansson
Copyright (C) 2006, 2007 Jari Häkkinen
This file is part of the yat library, http://trac.thep.lu.se/trac/yat
The yat library is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The yat library 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 GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
#include "yat/utility/matrix.h"
#include "yat/utility/PCA.h"
#include
#include
#include
#include
using namespace theplu::yat;
int main()
{
utility::matrix A( 3, 4 );
for( size_t i = 0; i < 3; ++i )
for( size_t j = 0; j < 4; ++j )
A(i,j)= sin( static_cast(i+j+2+(i+1)*(j+1)) );
A.transpose();
utility::PCA pca(A);
return 0;
}