91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 2KB
    文件類型: .m
    金幣: 1
    下載: 0 次
    發布日期: 2021-06-03
  • 語言: Matlab
  • 標簽: 歐式距離??matlab??

資源簡介

這是一個計算歐式距離的matlab程序,本人使用過,很好用。

資源截圖

代碼片段和文件信息

function?d?=?euclidean(abdf)
%?EUCLIDEAN?-?computes?Euclidean?distance?matrix
%
%?E?=?euclidean(AB)
%
%????A?-?(DxM)?matrix?
%????B?-?(DxN)?matrix
%????df?=?1?force?diagonals?to?be?zero;?0?(default)?do?not?force
%?
%?Returns:
%????E?-?(MxN)?Euclidean?distances?between?vectors?in?A?and?B
%
%
%?Description?:?
%????This?fully?vectorized?(VERY?FAST!)?m-file?computes?the?
%????Euclidean?distance?between?two?vectors?by:
%
%?????????????????||A-B||?=?sqrt?(?||A||^2?+?||B||^2?-?2*A.B?)
%
%?Example?:?
%????A?=?rand(400100);?B?=?rand(400200);
%????d?=?distance(AB);

%?Author???:?Roland?Bunschoten
%????????????University?of?Amsterdam
%????????????Intelligent?Autonomous?Systems?(IAS)?group
%????????????Kruislaan?403??1098?SJ?Amsterdam
%????????????tel.(+31)20-5257524
%????????????bunschot@wins.uva.nl
%?Last?Rev?:?Wed?Oct?20?08:58:08?MET?DST?1999
%?Tested???:?PC?Matlab?v5.2?and?Solaris?Matlab?v5.3

%?Copyright?notice:?You?are?free?to?modify?extend?and?distribute?
%????this?code?granted?that?the?author

評論

共有 條評論