Skip to content

Instantly share code, notes, and snippets.

@ende76
ende76 / test_pca.m
Created June 3, 2012 17:24
Unit Test for Assignment "Dimensionality Reduction (Week 8)"
function [success] = test_pca()
eps = 1E-4;
X = [ ...
0.8414710 -0.2879033 -0.4040376 0.9017883 -0.9661178 0.5661076 0.1059875 -0.7271425 0.9988152 -0.7904332 0.2021499; ...
0.9092974 -0.9613975 0.5514267 0.1235731 -0.7391807 0.9995202 -0.7794661 0.1847817 0.4987132 -0.9425145 0.9333205; ...
0.1411200 -0.7509872 0.9999119 -0.7682547 0.1673557 0.5139785 -0.9482821 0.9268185 -0.4599035 -0.2280523 0.8064006; ...
0.7568025 0.1498772 0.5290827 -0.9537527 0.9200260 -0.4441127 -0.2452520 0.8167426 -0.9956870 0.6960801 -0.0619203; ...
0.9589243 0.9129453 -0.4281827 -0.2623749 0.8268287 -0.9938887 0.6832617 -0.0442427 -0.6160405 0.9802397 -0.8733120; ...