gatx0.m
来自「四种支持向量机用于函数拟合与模式识别的Matlab示例程序」· M 代码 · 共 30 行
M
30 行
function [x0] = gatx0( alpha, theta, mi, sigma )% GATX0 compute point x0 (Generalized Andeson's task).% [x0] = gatx0( alpha, theta, mi, sigma )%% GATX0 computes a point on lying on the hyperplane having% the shortest Mahalanobis distance from given Gaussian% distribution (point mi and covariance matrix sigma).%% Input:% alpha [Dx1] normal vector of hyperplane.% theta [1x1] threshold of hyperplane.% mi [Dx1] mean value vector.% sigma [DxD] covariance matrix.%% Output:% x0 [Dx1] found point.%% Statistical Pattern Recognition Toolbox, Vojtech Franc, Vaclav Hlavac
% (c) Czech Technical University Prague, http://cmp.felk.cvut.cz
% Written Vojtech Franc (diploma thesis) 24.10.1999, 27.02.2000
% Modifications:% 03-May-2001, V. Franc, createdx0 = mi - ((alpha' * mi ) - theta )*(sigma*alpha) / (alpha'*sigma*alpha);return;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?