DistanceMatrix[list]
gives a matrix of distances or dissimilarities between the elements of list.
DistanceMatrix
DistanceMatrix[list]
gives a matrix of distances or dissimilarities between the elements of list.
更多信息和选项
- To use DistanceMatrix, you first need to load the Hierarchical Clustering Package using Needs["HierarchicalClustering`"].
- The elements of list can be numeric lists, matrices, or tensors, lists of Boolean elements, or strings. All data elements must have the same dimensions.
- DistanceMatrix returns a symmetric matrix suitable for use by DirectAgglomerate.
- The method used to compute dissimilarities can be selected with the DistanceFunction option.
- With the default setting DistanceFunction->Automatic, DistanceMatrix uses the square of EuclideanDistance for numeric data, JaccardDissimilarity for Boolean data, and EditDistance for string data.
- The setting for DistanceFunction can be any distance or dissimilarity function or a pure function f defining a distance between two values.
文本
Wolfram Research (2007),DistanceMatrix,Wolfram 语言函数,https://reference.wolfram.com/language/HierarchicalClustering/ref/DistanceMatrix.html.
CMS
Wolfram 语言. 2007. "DistanceMatrix." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/HierarchicalClustering/ref/DistanceMatrix.html.
APA
Wolfram 语言. (2007). DistanceMatrix. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/HierarchicalClustering/ref/DistanceMatrix.html 年
BibTeX
@misc{reference.wolfram_2025_distancematrix, author="Wolfram Research", title="{DistanceMatrix}", year="2007", howpublished="\url{https://reference.wolfram.com/language/HierarchicalClustering/ref/DistanceMatrix.html}", note=[Accessed: 14-April-2026]}
BibLaTeX
@online{reference.wolfram_2025_distancematrix, organization={Wolfram Research}, title={DistanceMatrix}, year={2007}, url={https://reference.wolfram.com/language/HierarchicalClustering/ref/DistanceMatrix.html}, note=[Accessed: 14-April-2026]}