代码搜索:gradient
找到约 2,951 项符合「gradient」的源代码
代码结果 2,951
www.eeworm.com/read/358021/3007482
m gradient_example.m
%gradient_example.m
%计算二维高斯函数的梯度场
v=-2:0.25:2;
[x,y]=meshgrid(v,v); %产生自变量x,y
z= exp(-(x.^2+y.^2+0.5*x.*y)); %二维高斯函数
[px py]=gradient(
www.eeworm.com/read/475069/6801681
jpg gradient023.jpg
www.eeworm.com/read/474600/6813482
m gradient_descent.m
function Min = gradient_descent(a, theta, eta, fun)
% Minimize a function using the basic gradient descent algorithm
%
% Inputs:
% a - Initial search point
% theta - Convergence criterion
%
www.eeworm.com/read/359187/6841972
m gradient_descent.m
function Min = gradient_descent(a, theta, eta, fun)
% Minimize a function using the basic gradient descent algorithm
%
% Inputs:
% a - Initial search point
% theta - Convergence criterion
%
www.eeworm.com/read/471742/6888629
m gradient_ex.m
%gradient_ex.m
%This script plots and evaluates the function f=x*exp(-(x^2+y^2+z^2)) and its gradient
%The plots are done versus x,y at a certain z value
warning off; %supress unwanted warnings by
www.eeworm.com/read/174183/9603823