黑客帝国源码安装过程

本文详细介绍了在Linux系统中安装四个开源工具:aalib用于图形处理,aview提供图形界面,ImageMagick用于图像转换,以及cmatrix的矩阵动画制作过程,包括下载、解压、配置和编译安装步骤。
摘要由CSDN通过智能技术生成

一、安装aalib

1.wget https://nchc.dl.sourceforge.net/project/aa-project/aa-lib/1.4rc5/ -aalib-1.4rc5.tar.gz

2.tar xf aalib-1.4rc5.tar.gz
3. cd aalib-1.4.0/
4. ./configure
5.make
6.make install

二、安装aview

1.wget http://prdownloads.sourceforge.net/aa-project/ -aview-1.3.0rc1.tar.gz

2.tar xf aview-1.3.0rc1.tar.gz
3. cd aview-1.3.0
4. ./configure
5. make
6.make install

三、安装ImageMagick

1.yum install ImageMagick

2.yum install ncurses-devel

四、安装cmatrix

1.wget https://jaist.dl.sourceforge.net/project/cmatrix/cmatrix/1.2a/ -cmatrix-1.2a.tar.gz

2.tar xf cmatrix-1.2a.tar.gz
3.cd cmatrix-1.2a
4../configure
5.make
6.make install

五、验证程序是否可以执行:

1.cmatrix

2.cmatrix -b -u 3 -C blue


Introduction ============ This is a class for symmetric matrix related computations. It can be used for symmetric matrix diagonalization and inversion. If given the covariance matrix, users can utilize the class for principal component analysis(PCA) and fisher discriminant analysis(FDA). It can also be used for some elementary matrix and vector computations. Usage ===== It's a C++ program for symmetric matrix diagonalization, inversion and principal component anlaysis(PCA). To use it, you need to define an instance of CMatrix class, initialize matrix, call the public funtions, and finally, free the matrix. For example, for PCA, CMarix theMat; // define CMatrix instance float** C; // define n*n matrix C = theMat.allocMat( n ); Calculate the matrix (e.g., covariance matrix from data); float *phi, *lambda; // eigenvectors and eigenvalues int vecNum; // number of eigenvectors (<=n) phi = new float [n*vecNum]; lambda = new float [vecNum]; theMat.PCA( C, n, phi, lambda, vecNum ); delete phi; delete lambda; theMat.freeMat( C, n ); The matrix diagonalization function can also be applied to the computation of singular value decomposition (SVD), Fisher linear discriminant analysis (FLDA) and kernel PCA (KPCA) if forming the symmetric matrix appropriately. For data of very high dimensionality (n), the computation of nxn matrix is very expensive on personal computer. But if the number m of samples (vectors) is smaller than dimenionality, the problem can be converted to the computation of mxm matrix. The users are recommended to read the paper KPCA for how to form mxm matrix: B. Sch枚lkopf, A. Smola, K.-R. M眉ller. Nonlinear component analysis as a kernel eigenvalue problem, Neural Computation, 10(5): 1299-1319, 1998. Example ======= Refer to `example' directory for a simple demonstration.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值