亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? example3.cpp

?? 利用這個模板可以分析基因表達數據
?? CPP
字號:
//// This file contains some example code, which may be used to call // the matrix, vector and statistics algorithms.//// This code is not necessarily meant to be useful in itself, but is provided as // an example of how the class may be used.//// Copyright (C) 1999 Software Engineering Group, Crystallography Department,// Birkbeck College, Malet Street, London WC1E 7HX, U.K.// (d.moss@mail.cryst.bbk.ac.uk or m.williams@biochemistry.ucl.ac.uk)// // This library is free software; you can redistribute it and/or modify it // under the terms of the GNU Library General Public License as published by // the Free Software Foundation; either version 2 of the License, or (at your// Handle) any later version.  This library is distributed in the hope// that it will be useful, but WITHOUT ANY WARRANTY; without even the// implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR// PURPOSE.  See the GNU Library General Public License for more details.// You should have received a copy of the GNU Library General Public// License along with this library; if not, write to the Free Software// Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.///////////////////////////////////////////////////////////////////////////////////////// Author: Mark Williams // /////////////////////////////////////////////////////////////////////////////////////// // Brief Description of Code:// // Carry out simple numerical tasks.//// For further details see the documentation for the matrix, vector classes // and the algorithms header files./////////////////////////////////////////////////////////////////////////////////////// #include <iostream>using namespace std;#include "btl_numeric_vector.h"#include "btl_matrix.h"#include "btl_vector_algorithms.h"#include "btl_matrix_algorithms.h"#include "btl_statistics.h"using namespace btl;int main(){	matrix<double> A(3,4,2.3);	matrix<double> B(4,3,2.6);	matrix<double> C(3,3,1.2);	matrix<double> D(3,4);	// member function - A,B,C are instances of the matrix class	C = A * B;// Vector stuff	double temp = 0.0;	temp = scalar_product(A.begin(),A.end(),B.begin(),temp);	cout << "temp " << temp << endl;	temp = 0.0;	temp = scalar_product(A.begin(),B.begin(),temp);	cout << "temp triple " << temp << endl;	vector_product(A.begin(),B.begin(),C.begin());	cout << "vector product " << C(1,1) << endl;	triple_vector_product(A.begin(),B.begin(),C.begin(),D.begin());	cout << "triple vector product " << D(1,1) << " " << D(1,2) << 	" " << D(1,3) << endl;	direct_product(A.begin(),A.end(),B.begin(),D.begin());	cout << "direct " << D(1,1) << endl;	D += temp;	cout << "direct+temp " << D(1,1) << endl;	temp = 0.0;	temp = triple_scalar_product(A.begin(),B.begin(),D.begin(),temp);	cout << "triple_scalar " << temp << endl;	temp = 0.0;	temp = separation_squared(A.begin(),A.end(),B.begin(),temp);	cout << "separation squared " << temp << endl;	temp = 0.0;	temp = separation(A.begin(),A.end(),B.begin(),temp);	cout << "separation " << temp << endl;	temp = 0.0;	temp = sum(A.begin(),A.end(),temp);	cout << "sum "<< temp << endl;		temp = 0.0;	temp = sum_precise(A.begin(),A.end(),temp);	cout << "sum precise "<< temp << endl;	temp = 0.0;	temp = sum_of_squares(A.begin(),A.end(),temp);	cout << "sum squares "<< temp << endl;	temp = 0.0;	temp = sum_of_squares_precise(A.begin(),A.end(),temp);	cout << "sum squares precise "<< temp << endl;	temp = 0.0;	temp = sum(A.begin(),temp);	cout << "sum triple "<< temp << endl;	temp = 0.0;	temp = sum_of_squares(A.begin(),temp);	cout << "sum squares triple "<< temp << endl;	temp = 0.0;	temp = magnitude(A.begin(),A.end(),temp);	cout << "magnitude "<< temp << endl;	temp = 0.0;	temp = magnitude_precise(A.begin(),A.end(),temp);	cout << "magnitude precise "<< temp << endl;	temp = 0.0;	temp = magnitude(A.begin(),temp);	cout << "magnitude triple "<< temp << endl;// Statistics stuff	double mean1 = 0.0;	mean1 = mean(A.begin(),A.end(),mean1);	cout << "mean "<< mean1 << endl;	temp = 0.0;	temp = mean_absolute_deviation(A.begin(),A.end(),temp,mean1);	cout << "mean abs dev "<< temp << endl;	temp = 0.0;	temp = variance(A.begin(),A.end(),temp,mean1);	cout << "variance "<< temp << endl;	double temp1=0.0;	double temp2=0.0;	double temp3=0.0;	double temp4=0.0;	double temp5=0.0;	normal_statistics(A.begin(),A.end(),temp1,temp2,temp3,temp4,temp5);	cout << "mean "<< temp1 << endl;	cout << "mad "<< temp2 << endl;	cout << "variance "<< temp3 << endl;	cout << "skew "<< temp4 << endl;	cout << "kurtosis "<< temp << endl;// Matrix stuff	vector<double> E(5);	cout << "A " << A(1,1) << endl;	column_means(A.begin(),A.end(),A.rows(),E.begin());	cout << "A column mean " << E[0] << endl;	copy_column(A.begin(),A.end(),A.rows(),E.begin(),1);			cout << "A copied to E " << A(1,1) << " " << E[1] << endl;		temp=0.0;	temp=determinant(C.begin(),C.end(),C.rows(),temp);			cout << "det C "<< temp << endl;	cout << "matrix C "<< C << endl;	matrix<double> F(4,4);	matrix<double> G(4,4);	matrix<double> H(4,4);	matrix<double> I(4,4);	matrix<double> J(4,4);	matrix<double> K(3,3);	int i,j;	temp=0.0;	for(i=1;i<5;i++)	{	    for(j=1;j<5;j++)	    {		temp += 1.0;		F(i,j)=temp;	    }	}	cout << "matrix F "<< F << endl;	transpose(F.begin(),F.end(),F.rows(),G.begin());	cout << "matrix G=FT "<< G << endl;	matrix_matrixtranspose_product(F.begin(),F.end(),F.rows(),					G.begin(),G.end(),G.rows(),					H.begin());	cout << "matrix FGT "<< H << endl;	matrixtranspose_matrix_product(F.begin(),F.end(),F.rows(),					G.begin(),G.end(),G.rows(),					I.begin());	cout << "matrix FTG "<< I << endl;	matrix_product(G.begin(),G.end(),G.rows(),			G.begin(),G.end(),G.rows(),			J.begin());	cout << "matrix GG "<< J << endl;	matrix_minor(J.begin(),J.end(),J.rows(),K.begin(),1,3);	cout << "matrix minor of GG "<< K << endl;	matrix<double> L(4,4,1.3);	temp=0.0;	K(1,1)= 1.0;	K(1,2)= 3.0;	K(1,3)= 7.0;	K(2,1)= 3.0;	K(2,2)= 4.0;	K(2,3)= 5.0;	K(3,1)= 3.0;	K(3,2)= 2.0;	K(3,3)= 2.0;	cout << "K "<< K << endl;	temp=determinant(K.begin(),K.end(),K.rows(),temp);			cout << "det K "<< temp << endl;	matrix<double> M(3,3,1.3);	adjoint(K.begin(),K.end(),K.rows(),M.begin());			cout << "adjoint K "<< M << endl;	inverse_square(K.begin(),K.end(),K.rows(),M.begin());			cout << "inverse K "<< M << endl;	matrix<double> N(3,3,0.0);	matrix_product(M.begin(),M.end(),M.rows(),			K.begin(),K.end(),K.rows(),			N.begin());	cout << "invK.K "<< N << endl;	matrix<double> U;	numeric_vector<double> X;	matrix<double> V;	K(1,1)= 4.0; K(1,2)= 2.0; K(1,3)= 14.0;	K(2,1)= 2.0; K(2,2)= 17.0; K(2,3)= -5.0;	K(3,1)= 14.0; K(3,2)= -5.0; K(3,3)= 83.0;	inverse_cholesky(K.begin(),K.end(),K.rows(),M.begin());			cout << "inverse K "<< M << endl;	N *= 0.0;	matrix_product(M.begin(),M.end(),M.rows(),			K.begin(),K.end(),K.rows(),			N.begin());	cout << "invK.K "<< N << endl;	K(1,1)= 0.0;	K(1,2)= 1.0;	K(1,3)= 0.0;	K(2,1)= 1.0;	K(2,2)= 0.0;	K(2,3)= 0.0;	K(3,1)= 0.0;	K(3,2)= 0.0;	K(3,3)= 0.0;	numeric_vector<double> P(3);	eigen_solution(K.begin(),K.end(),K.rows(),M.begin(),P.begin());	cout << "eigenvectors " << M << endl;	cout << "eigenvalues " << P << endl;		assert(C(1,2)==C(2,1));	cout << "multiply " << C(1,2) << endl;    	return 0;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩高清一级片| 欧美日韩一区不卡| 国产麻豆视频精品| 成人ar影院免费观看视频| 99精品欧美一区二区三区小说| 91免费小视频| 欧美不卡在线视频| 国产精品成人在线观看| 午夜精品久久久| 国产91在线观看| 欧美人与z0zoxxxx视频| 国产香蕉久久精品综合网| 亚洲成av人片一区二区三区| 国产精品伊人色| 欧美四级电影在线观看| 亚洲国产精品激情在线观看| 日韩中文字幕亚洲一区二区va在线 | 91麻豆自制传媒国产之光| 韩日av一区二区| 欧美性猛片xxxx免费看久爱| 国产网站一区二区| 久久精品国产免费看久久精品| 91尤物视频在线观看| 日本一区二区免费在线观看视频| 亚洲电影第三页| 91精彩视频在线| 国产精品初高中害羞小美女文| 久久99精品国产麻豆婷婷洗澡| 欧美日本一区二区| 亚洲大尺度视频在线观看| 91福利视频久久久久| 一区二区三区高清在线| 成人国产精品免费观看| 国产精品黄色在线观看| 国内精品在线播放| 国产亚洲欧美日韩俺去了| 国产在线视频精品一区| 欧美精品一区二| 高清不卡一二三区| 中文字幕在线不卡视频| 色94色欧美sute亚洲线路一ni | 日本久久电影网| 亚洲不卡av一区二区三区| 欧美亚洲日本国产| 青娱乐精品视频在线| 国产婷婷色一区二区三区| 色成年激情久久综合| 亚洲成人av在线电影| 精品日产卡一卡二卡麻豆| 久久成人免费电影| 亚洲男人都懂的| 久久综合久久综合亚洲| 色婷婷av一区二区| 日本美女一区二区三区| 日本一区二区三级电影在线观看| 色欧美88888久久久久久影院| 免费高清视频精品| 久久国产精品色| 亚洲综合无码一区二区| 久久影院视频免费| 欧美群妇大交群的观看方式 | 欧美v日韩v国产v| 欧美在线观看一二区| 国产精一区二区三区| 日本伊人色综合网| 亚洲婷婷综合久久一本伊一区| 欧美高清www午色夜在线视频| 成人av影视在线观看| 麻豆成人久久精品二区三区小说| 亚洲欧美日韩中文字幕一区二区三区| 日韩欧美一区在线| 欧美日韩一区二区欧美激情 | 中文字幕亚洲不卡| 久久久亚洲精品一区二区三区 | 毛片av一区二区| 日本不卡一二三| 日韩av午夜在线观看| 水野朝阳av一区二区三区| 一区二区成人在线| 天堂一区二区在线| 视频一区在线播放| 日韩在线a电影| 卡一卡二国产精品| 国产在线精品一区二区夜色| 欧美精品一二三| 久久99久久久久| 国产一区二区在线观看视频| 国产伦精品一区二区三区免费迷| 久久 天天综合| 91色婷婷久久久久合中文| 在线观看一区二区视频| 色综合天天视频在线观看| 3d成人h动漫网站入口| 日韩女优av电影| 日本不卡不码高清免费观看 | 懂色av一区二区三区蜜臀| 成人18视频在线播放| 欧洲一区二区三区在线| 欧美一区二区在线观看| 欧美国产综合色视频| 亚洲一区二区在线视频| 国产毛片精品国产一区二区三区| eeuss鲁片一区二区三区在线观看| 91激情在线视频| 久久久久久久久99精品| 亚洲国产日韩一级| 99精品视频中文字幕| 精品国产电影一区二区| 一级日本不卡的影视| 国产91丝袜在线播放| 91精品福利在线一区二区三区| 中文字幕一区二区三区蜜月| 国产揄拍国内精品对白| 91精品婷婷国产综合久久 | 国产盗摄视频一区二区三区| 欧美日韩一区二区欧美激情 | av一区二区三区| 欧美韩日一区二区三区四区| 伦理电影国产精品| 欧美一卡二卡三卡| 午夜一区二区三区视频| 在线观看精品一区| 亚洲欧洲日韩在线| 93久久精品日日躁夜夜躁欧美| 国产精品久久久久一区| 成人免费看片app下载| 国产精品无码永久免费888| 国产精品综合av一区二区国产馆| 欧美一区二区三区在线观看视频| 午夜国产精品一区| 欧美一区二区高清| 国产在线国偷精品免费看| 久久久不卡影院| 色就色 综合激情| 午夜欧美大尺度福利影院在线看| 欧美高清一级片在线| 精品亚洲国内自在自线福利| 久久美女艺术照精彩视频福利播放 | 欧美久久久久久久久中文字幕| 亚洲国产日韩一级| 精品av综合导航| 91美女片黄在线| 日韩高清在线不卡| 中文字幕一区在线观看视频| 欧美日韩中文一区| 国产一区二区三区黄视频 | 欧美日本乱大交xxxxx| 国产激情91久久精品导航| 一区二区三区色| 久久无码av三级| 欧美性色aⅴ视频一区日韩精品| 久久99热99| 亚洲午夜久久久久久久久电影院 | 99免费精品视频| 美女视频第一区二区三区免费观看网站| 久久理论电影网| 精品人在线二区三区| 色菇凉天天综合网| 成人不卡免费av| 国产在线精品一区二区三区不卡| 亚洲妇女屁股眼交7| 国产精品国产三级国产aⅴ无密码| 日韩写真欧美这视频| 欧美视频在线不卡| 在线视频一区二区三区| 成人h版在线观看| 国产盗摄精品一区二区三区在线| 老司机精品视频在线| 午夜国产不卡在线观看视频| 一区二区三区四区亚洲| 国产精品久久久久久久久免费桃花 | 国产日韩欧美精品在线| 精品欧美一区二区三区精品久久| 日韩欧美精品三级| 精品国产免费一区二区三区四区| 日韩一区二区三区av| 精品1区2区在线观看| 国产欧美日韩在线| 国产清纯白嫩初高生在线观看91 | 美脚の诱脚舐め脚责91 | 日韩欧美中文字幕一区| 国产亚洲美州欧州综合国| 欧美激情一二三区| 亚洲自拍偷拍网站| 久久国产精品99久久人人澡| 国产一区二区三区在线看麻豆| www.亚洲激情.com| 欧美性受极品xxxx喷水| 欧美一级专区免费大片| 国产精品电影一区二区| 天天做天天摸天天爽国产一区| 美女免费视频一区二区| 成人免费av资源| 欧美一区二区私人影院日本| 亚洲欧洲成人av每日更新| 日韩av电影免费观看高清完整版在线观看| 麻豆91免费看| 欧美吻胸吃奶大尺度电影 | 99久久精品国产一区二区三区| 欧美久久免费观看|