Description: 完全用C++实现的PCA算法,可以用于实际工作和学习中-Entirely in C++ implementation of the PCA algorithm can be used for practical work and learning Platform: |
Size: 13312 |
Author: |
Hits:
Description: 此源代码使用Eigen C ++库在C ++中实现了PCA算法。
运行代码所需的组件:
- 安装Visual Studio 2012(Express Edition工作正常)
- Windows操作系统(Windows 7或更高版本)
如何运行源代码:
- 打开文件。\ pca \ PrincipalComponentAnalysis \ PrincipalComponentAnalysis \ Program.cpp
- 在行和列变量中设置矩阵的尺寸。
- 在m变量中设置矩阵值。
- 运行程序F5
- 输出应该是输入的主要成分的值。
分配矩阵的输出可以在Output.txt中找到(This source code has implementation for PCA algorithm in C++ using Eigen C++ library.
Required components to run the code:
- Install Visual Studio 2012 (Express Edition works fine)
- Windows operating system (Windows 7 or higher)
How to run the source code:
- Open file .\pca\PrincipalComponentAnalysis\PrincipalComponentAnalysis\Program.cpp
- Set the matrix dimensions in rows and columns variables.
- Set the matrix values in m variable.
- Run the program F5
- Output should be the values of the input's principal component.
The output of the assignment matrix is found in Output.txt) Platform: |
Size: 10320896 |
Author:HJL Kevin |
Hits: