#include <iostream>
#include <matrix/newmatio.h>
#include <matrix/newmat.h>
#include <matrix/newmatap.h>
#include <list>
#include <ExampleModel.h>
#include <Analyzer.h>
#include <stdio.h>
Include dependency graph for batch-analyzer.cpp:
Go to the source code of this file.
Functions | |
int | main () |
|
Definition at line 11 of file batch-analyzer.cpp. 00012 { 00013 Matrix data(2, 10); 00014 Real temp[] = { 2.5, 0.5, 2.2, 1.9, 3.1, 2.3, 2, 1, 1.5, 1.1, 2.4, 0.7, 2.9, 2.2, 3.0, 2.7, 1.6, 1.1, 1.6, 0.9 }; 00015 data << temp; 00016 00017 00018 Analyzer pca; 00019 00020 pca.setData(data); 00021 printf("setData done\n"); 00022 pca.mean(data); 00023 printf("mean done\n"); 00024 pca.adjust(); 00025 printf("adjust done\n"); 00026 pca.covariance(); 00027 printf("covariance done\n"); 00028 pca.findComponents(); 00029 printf("finding done\n"); 00030 pca.computeEnergy(); 00031 printf("compute energy done\n"); 00032 pca.selectComponents(); 00033 printf("select components done\n"); 00034 pca.getTransformationMatrix(); 00035 00036 00037 //Application to test the Analyzer - should be expanded to a batch program. 00038 }
|