)
generates a sample value for the beta distribution, and the parameter must be greater than 0
chisquare ()
generates sample values for Chi-square distribution
gamma ()
produces a gamma distribution of sample values
uniform ()
produces sample values that are evenly distributed in [0,1]
2.1.c.1 Random Common functionsD Numpy.linalg functions and properties:
Function
Description
/intersect1d/union1d/setdiff1d/setxor1d
file input and OUTPUT functions
Loadtxt/savetxt
Save/load
Saves the array as a binary format disk or read (NPY)
Savez
Save multiple arrays to a compressed file
Linear algebraic functions (LINALG)
Dot
Matrix Inner Product XTX
Qr
QR decomposition
Inv
Inverse matrix
Svd
, it is generally necessary to use the direct search method when the objective function of the problem is difficult to be represented by the analytic formula of the Guide function. At the same time, because these methods are generally more intuitive and easy to understand, they are often used in practical applications.
Powell method: Basic Search Accelerated Search Adjust Search
Specific steps ^ See page 54 ^ Matlab to seek unconstrained extremum problem
Symbolic Solution:
% calculation of the M
function Q=AHP (A)
[M,n]=size (A);
Ri=[0 0 0.58 0.90 1.12 1.24 1.32 1.41 1.45 1.49 1.51];
R=rank (A); The rank of the Judgment matrix
[V,d]=eig (A); % to determine the eigenvalues and eigenvectors of the Matrix, v eigenvalues, D eigenvectors;
Tz=max (D);
B=max (TZ); % Maximum characteristic value
[Row, Col]=find (d==b); % Maximum Eigenvalue location
C=v (:, col); % corresponding feature vector
Ci= (b-n)/(n-1); % Calculation Consistency Test indicator
matrix, the poly (a) command evaluates the characteristic polynomial of a, Det (Lambda*eye (Size (a))-a)Poly (v) when V is a vector, command poly (v) generates a polynomial with V as its rootRoot to find the roots of the polynomialRoot (P)
Cases
Clear
CLC
a=[1 2 3;4 5 6;7 8 0];
P=poly (A)% to find the characteristic polynomial |λe-a|
R=roots (p)%, based on the above characteristic polynomial, to find eigenvaluesResults
p =
1.0000 -6.0000 -72.0000 -27.0000
r =
12.1229
-5.734
Recent exposure to LDA (linear discriminant analysis), LFDA (local discriminant analysis), Flda (Fisher linear discriminant analysis), MMDA (multi-modal discriminant analysis) and other methods for feature extraction, all of which involve the same problem--fisher The Criterion (Fisher discriminant criterion), which requires the minimization of intra-class discretization and the largest inter-class dispersion, describes the problem as shown in the figure:
This leads to the generalized eigenval
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.