代码搜索:Gradient
找到约 2,951 项符合「Gradient」的源代码
代码结果 2,951
www.eeworm.com/read/342786/11998915
c dmtxregion.c
/*
libdmtx - Data Matrix Encoding/Decoding Library
Copyright (C) 2006 Mike Laughton
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General P
www.eeworm.com/read/342786/11998942
c dmtxencode.c
/*
libdmtx - Data Matrix Encoding/Decoding Library
Copyright (C) 2006 Mike Laughton
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General P
www.eeworm.com/read/341340/12090133
bak driver.bak
/* We illustrate the operation of the code using the problem
min \sum_{i=1}^n exp (x [i]) - sqrt (i)*x [i] ;
subject to 0
www.eeworm.com/read/341340/12090165
cpp test.cpp
/* We illustrate the operation of the code using the problem
Final convergence status = 0
Convergence tolerance for gradient satisfied
projected gradient max norm: 7.007567e-009
function value:
www.eeworm.com/read/152442/12113201
m ggvf.m
function [u,v] = GGVF(f, mu, ITER)
% [u,v] = GGVF(f, mu, ITER)
%
% Generalized Gradient Vector Flow
%
% Chenyang Xu and Jerry L. Prince 6/17/97
% Copyright (c) 1996-97 by Chenyang Xu and Jerry L.
www.eeworm.com/read/152288/12124159
m 3-23.m
% 生成二元函数
v = -2:0.2:2;
[x,y] = meshgrid(v);
z = x .* exp(-x.^2 - y.^2);
% 绘制曲面,如图3-4所示
figure(1)
mesh(x,y,z);
[px,py] = gradient(z,.2,.2);
% 求偏导数
figure(2)
contour(v,v,z)
% 绘制等高线,如图3-5所示
h
www.eeworm.com/read/152288/12124170
m untitled4.m
clear all;
[X,Y] = meshgrid(-2:.02:2);
%Z = X.*exp(-X.^2 - Y.^2);
Z =X.^2+3*Y.^2-1;
[DX,DY] = gradient(Z,.02,.02);
contour(X,Y,Z)
hold on
quiver(X,Y,DX,DY)
colormap hsv
%plot(X,Y,Z,'--rs','Li
www.eeworm.com/read/152288/12124188
asv 3-23.asv
% 生成二元函数
v = -2:0.2:2;
syms x y;
[x,y] = meshgrid(v);
z = x .* exp(-x.^2 - y.^2);
% 绘制曲面,如图3-4所示
figure(1)
mesh(x,y,z);
[px,py] = gradient(z,.2,.2);
% 求偏导数
figure(2)
contour(v,v,z)
% 绘制等高线
www.eeworm.com/read/152288/12124274
asv untitled4.asv
clear all;
[X,Y] = meshgrid(-2:.02:2);
%Z = X.*exp(-X.^2 - Y.^2);
Z =X.^2+3*Y.^2-1;
[DX,DY] = gradient(Z,.02,.02);
contour(X,Y,Z)
hold on
quiver(X,Y,DX,DY)
colormap hsv
%plot(X,Y,Z,'--rs','Li
www.eeworm.com/read/253950/12173346
m rosegrad.m
function g = rosegrad(x)
%ROSEGRAD Calculate gradient of Rosenbrock's function.
%
% Description
% G = ROSEGRAD(X) computes the gradient of Rosenbrock's function at
% each row of X, which should have t