代码搜索:Distance
找到约 8,736 项符合「Distance」的源代码
代码结果 8,736
www.eeworm.com/read/177530/6789456
dll distance.dll
www.eeworm.com/read/295342/8168896
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/195191/8170092
f distance.f
www.eeworm.com/read/294912/8193275
h distance.h
#if !defined(DISTANCE_H)
#define DISTANCE_H
#define min(a, b) (((a) < (b)) ? (a) : (b))
#define max(a, b) (((a) > (b)) ? (a) : (b))
int LD(const char *x, unsigned int m, const char *y, unsigned
www.eeworm.com/read/294912/8193282
cpp distance.cpp
/////////////////////////////////////////////////////////////////////////////////////////////////
//
// Levenshtein Distance
// @author: Gonzales Cenelia
// homepage: www.ai-search.4t.com
//
//
www.eeworm.com/read/193607/8213320
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
www.eeworm.com/read/193607/8213360
hpp distance.hpp
/* 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
www.eeworm.com/read/393042/8314402
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/174089/9608068
txt distance.txt
0
99999
99999
99999
99999
99999
99999
-1
99999
99999
99999
99999
99999
99999
99999
0
99999
99999
99999
99999
99999
99999
99999
99999
99999
-1
99999
99999
99999
99999
0
9
www.eeworm.com/read/369612/9638121
m distance.m
%计算x1,x2之间的欧氏距离函数,k为x1,x2中的元素个数
function y = distance(x1,x2,k)
d = 0;
for i = 1:k
d = d + (x1(i) - x2(i))^2;
end
y = sqrt(d);