Bayesian Artificial Intelligence (Second Edition) English Edition, 2011 Authors: Kevin B. Korb, Ann E. Nicholson
標簽: Intelligence Artificial Bayesian Edition Second
上傳時間: 2018-01-25
上傳用戶:zhkunhua
#include "iostream" using namespace std; class Matrix { private: double** A; //矩陣A double *b; //向量b public: int size; Matrix(int ); ~Matrix(); friend double* Dooli(Matrix& ); void Input(); void Disp(); }; Matrix::Matrix(int x) { size=x; //為向量b分配空間并初始化為0 b=new double [x]; for(int j=0;j<x;j++) b[j]=0; //為向量A分配空間并初始化為0 A=new double* [x]; for(int i=0;i<x;i++) A[i]=new double [x]; for(int m=0;m<x;m++) for(int n=0;n<x;n++) A[m][n]=0; } Matrix::~Matrix() { cout<<"正在析構中~~~~"<<endl; delete b; for(int i=0;i<size;i++) delete A[i]; delete A; } void Matrix::Disp() { for(int i=0;i<size;i++) { for(int j=0;j<size;j++) cout<<A[i][j]<<" "; cout<<endl; } } void Matrix::Input() { cout<<"請輸入A:"<<endl; for(int i=0;i<size;i++) for(int j=0;j<size;j++){ cout<<"第"<<i+1<<"行"<<"第"<<j+1<<"列:"<<endl; cin>>A[i][j]; } cout<<"請輸入b:"<<endl; for(int j=0;j<size;j++){ cout<<"第"<<j+1<<"個:"<<endl; cin>>b[j]; } } double* Dooli(Matrix& A) { double *Xn=new double [A.size]; Matrix L(A.size),U(A.size); //分別求得U,L的第一行與第一列 for(int i=0;i<A.size;i++) U.A[0][i]=A.A[0][i]; for(int j=1;j<A.size;j++) L.A[j][0]=A.A[j][0]/U.A[0][0]; //分別求得U,L的第r行,第r列 double temp1=0,temp2=0; for(int r=1;r<A.size;r++){ //U for(int i=r;i<A.size;i++){ for(int k=0;k<r-1;k++) temp1=temp1+L.A[r][k]*U.A[k][i]; U.A[r][i]=A.A[r][i]-temp1; } //L for(int i=r+1;i<A.size;i++){ for(int k=0;k<r-1;k++) temp2=temp2+L.A[i][k]*U.A[k][r]; L.A[i][r]=(A.A[i][r]-temp2)/U.A[r][r]; } } cout<<"計算U得:"<<endl; U.Disp(); cout<<"計算L的:"<<endl; L.Disp(); double *Y=new double [A.size]; Y[0]=A.b[0]; for(int i=1;i<A.size;i++ ){ double temp3=0; for(int k=0;k<i-1;k++) temp3=temp3+L.A[i][k]*Y[k]; Y[i]=A.b[i]-temp3; } Xn[A.size-1]=Y[A.size-1]/U.A[A.size-1][A.size-1]; for(int i=A.size-1;i>=0;i--){ double temp4=0; for(int k=i+1;k<A.size;k++) temp4=temp4+U.A[i][k]*Xn[k]; Xn[i]=(Y[i]-temp4)/U.A[i][i]; } return Xn; } int main() { Matrix B(4); B.Input(); double *X; X=Dooli(B); cout<<"~~~~解得:"<<endl; for(int i=0;i<B.size;i++) cout<<"X["<<i<<"]:"<<X[i]<<" "; cout<<endl<<"呵呵呵呵呵"; return 0; }
標簽: 道理特分解法
上傳時間: 2018-05-20
上傳用戶:Aa123456789
function [R,k,b] = msc(A) % 多元散射校正 % 輸入待處理矩陣,通過多元散射校正,求得校正后的矩陣 %% 獲得矩陣行列數 [m,n] = size(A); %% 求平均光譜 M = mean(A,2); %% 利用最小二乘法求每一列的斜率k和截距b for i = 1:n a = polyfit(M,A(:,i),1); if i == 1 k = a(1); b = a(2); else k = [k,a(1)]; b = [b,a(2)]; end end %% 求得結果 for i = 1:n Ai = (A(:,i)-b(i))/k(i); if i == 1 R = Ai; else R = [R,Ai]; end end
上傳時間: 2020-03-12
上傳用戶:15275387185
Cognitive radios have become a vital solution that allows sharing of the scarce frequency spectrum available for wireless systems. It has been demonstrated that it can be used for future wireless systems as well as integrated into 4G/5G wireless systems. Although there is a great amount of literature in the design of cognitive radios from a system and networking point of view, there has been very limited available literature detailing the circuit implementation of such systems. Our textbook, Radio Frequency Integrated Circuit Design for Cognitive Radios, is the first book to fill a disconnect in the literature between Cognitive Radio systems and a detailed account of the circuit implementation and architectures required to implement such systems. In addition, this book describes several novel concepts that advance state-of-the-art cognitive radio systems.
標簽: Cognitive Systems Design Radio RFIC for
上傳時間: 2020-06-01
上傳用戶:shancjb
·詳細說明:MP3程序 采用c51編程 適用于任何環境 -MP3 procedure uses the c51 programming to be suitable for any environm文件列表: COMMON.C51 ..........\BYTE2CHAR.C ..........\COMMON.H ..........\COM
上傳時間: 2013-07-24
上傳用戶:tfyt
特點: 精確度0.1%滿刻度 可作各式數學演算式功能如:A+B/A-B/AxB/A/B/A&B(Hi or Lo)/|A|/ 16 BIT類比輸出功能 輸入與輸出絕緣耐壓2仟伏特/1分鐘(input/output/power) 寬范圍交直流兩用電源設計 尺寸小,穩定性高
上傳時間: 2014-12-23
上傳用戶:ydd3625
The LTP5900 includes sufficient power supply filtering and decoupling capacitancesuch that additional filtering should not be necessary for most battery-powereddesigns. Care must be taken to avoid large transient voltages on the supply as theM2510 steps up its current consumption (see the section on Supply Design below).
標簽: Integration Hardware Guide 5900
上傳時間: 2014-12-24
上傳用戶:youmo81
The LTC®3569 is a compact power solution for handhelddevices. Its tiny 3mm × 3mm QFN package includesthree buck regulators with individually programmableoutput voltages. One regulator supports load currentsup to 1200mA, while the other two support currents to600mA. Two regulators can be paralleled for increasedload capability. Each current-mode regulator is internallycompensated with excellent load and line regulation. Acomplete 2- or 3-output solution requires a minimumof external passive components.
上傳時間: 2013-10-11
上傳用戶:yxgi5
Switching regulators are of universal interest. LinearTechnology has made a major effort to address this topic.A catalog of circuits has been compiled so that a designengineer can swiftly determine which converter type isbest. This catalog serves as a visual index to be browsedthrough for a specific or general interest.
標簽: Collection Switching Regulator Circuit
上傳時間: 2013-11-09
上傳用戶:mh_zhaohy
When a system designer specifies a nonisolated dc/dc powermodule, considering the needed input voltage range isequally as important as considering the required performanceattributes and features. Generally, nonisolated moduleshave either a narrow or a wide input voltage range. Narrowinputmodules typically have a nominal input voltage of3.3, 5, or 12 V. For systems that operate from a tightlyregulated input bus—such as those that do not use batterybackup—a narrow-input module is often adequate sincethe input remains fairly stable.Offering greater flexibility, wide-input modules operatewithin a range of 7 to 36 V, which includes the popular12- or 24-V industrial bus. This enables a single module tobe used for generating multiple voltages. These modulesare ideal for industrial controls, HVAC systems, vehicles,medical instrumentation, and other applications that usea loosely regulated distribution bus. In addition, systemspowered by a rectifier/battery charger with lead-acidbattery backup almost always require wide-input modules.System designers who choose power supplies may wantto take a close look at the latest generation of wide-inputdc/dc modules.
標簽: Wide-input modules offer dc
上傳時間: 2014-12-24
上傳用戶:dragonhaixm