代码搜索:Distance
找到约 8,736 项符合「Distance」的源代码
代码结果 8,736
www.eeworm.com/read/429757/8791005
m distance.m
function d = distance(inputcities)
%计算输入城市的距离解决旅行商问题。
d = 0;
for n = 1 : length(inputcities)
if n == length(inputcities)
d = d + norm(inputcities(:,n) - inputcities(:,1));
else
www.eeworm.com/read/429315/8811067
m distance.m
function fun=distance(point1,point2)
n=length(point1);
temp=0;
for i=1:n
temp=temp+(point2(i)-point1(i))^2;
end
fun=temp^(1/2);
www.eeworm.com/read/285190/8862137
m distance.m
% Program 6-3
% distance.m
%
% The calculation of distance between access point and access terminal.
%
% Input arguments
% bstn : coordinate of access point(x,y,z)
% mstn : coordinate of ac
www.eeworm.com/read/285000/8877155
m distance.m
function [C,D]=Distance(Q,D,m,N,r) % 由重构矩阵Q计算距离矩阵D
b=1/(N*N);
for k=1:m;
for i=1:N
for j=i+1:N % 由于距离矩阵D为对称矩阵,此处将D的下三角及其对角线上的计算过程去掉,减少1倍数据量
DD(i,j)=max(abs((Q(i,k)-Q(j,k))));
www.eeworm.com/read/187048/8881320
m distance.m
function y=distance(xi,yi,zi)
%外界声压斜入射
%st1^2+st2^2+st3^2=1;
%st1,st2,st3入射角余弦(平面波方向余弦)
%[st1,st2,st3]与[0,-tan(st),1]不成比例
st1=1/2;
st2=1/2;
st3=-(1/2)^(1/2);
Lx=0.1;
Ly=0.2;
Lz=1;
st=0;
A1
www.eeworm.com/read/185943/8972023
m distance.m
%计算两个点之间的距离
%输入参数x:1×2维的向量,代表一个点的坐标
%输入参数y:1×2维的向量,代表一个点的坐标
function D = Distance(x, y)
D = ((x(1)-y(1))^2 + (x(2)-y(2))^2)^0.5;
www.eeworm.com/read/182909/9185833
m distance.m
% Program 6-3
% distance.m
%
% The calculation of distance between access point and access terminal.
%
% Input arguments
% bstn : coordinate of access point(x,y,z)
% mstn : coordinate of ac
www.eeworm.com/read/379443/9197110
m distance.m
% Program 6-3
% distance.m
%
% The calculation of distance between access point and access terminal.
%
% Input arguments
% bstn : coordinate of access point(x,y,z)
% mstn : coordinate of ac
www.eeworm.com/read/377727/9263940
m distance.m
function d = distance(inputcities)
% DISTANCE
% d = DISTANCE(inputcities) calculates the distance between n cities as
% required in a Traveling Salesman Problem. The input argument has two rows
%
www.eeworm.com/read/179954/9329117
cpp distance.cpp
/* The following code example is taken from the book
* "The C++ Standard Library - A Tutorial and Reference"
* by Nicolai M. Josuttis, Addison-Wesley, 1999
*
* (C) Copyright Nicolai M. Josutti