Problem 2043. Six Steps to PCA - Step 1: Centre and Standardize
Solution Stats
Problem Comments
-
1 Comment
Jean-Marie Sainthillier
on 10 Feb 2014
Your definition of a constant (or invariant) data with rand is problematic. If you increase the size of your data (n=1000, n=10000...), you can always increase the deviations (so what threshold for sigma ?). I think that with real data, this artifact isn't possible. No ?
Solution Comments
-
1 Comment
Neil Caithness
on 17 Dec 2013
Nice solution that looks pretty nifty but it actually produces an unsafe result, just like Matlab's own zscore. It passed on it's first run trough the test suite but fails on some number of repeats. I've now added a second pass with a know random seed.
Problem Recent Solvers13
Suggested Problems
-
80654 Solvers
-
Arrange Vector in descending order
7986 Solvers
-
Back to basics 3 - Temp Directory
358 Solvers
-
147 Solvers
-
252 Solvers
More from this Author1
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!