📄 gauss_power.m
字号:
function [P,w] = gauss_power(P,r)
%function [Pr,w] = gauss_power(P,r)
%
% INPUTS:
% P - covariance of Gaussian
% r - positive real power
%
% OUTPUTS:
% Pr - resultant covariance
% w - weight of resultant Gaussian
%
% Exponentiation of a Gaussian produces a weighted Gaussian, such that
% Gauss(x,P)^r == w*Gauss(xr,Pr). Note, exponentiation does not alter the
% value of the mean, so xr == x.
%
% Tim Bailey 2007.
d = size(P,1);
[V,D] = eig(P);
s = r-1;
w = 1 / sqrt((2*pi)^(d*s) * r^d * prod(diag(D).^s));
P = P/r;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -