MaxMean Distance
% May 22nd, 2015 (150522): Reza Farrahi Moghaddam
%
% Syntax: [MaxMean_Distance_Result] = MaxMean_Distance_R(input_vector_1, input_vector_2)
%
% The MaxMean_Distance_R.m calculates the MaxMean Distance of two vectors
% (or recursively rows of matrices). The MaxMean Distance is defined as the
% mean of two distances: i) The average Euclidean distance between the two
% vectors (per dimension) and ii) The maximum absolute difference between
% elements of the two vectors.
%
%
% Examples:
% v1 = [1, 2, 20];
% v2 = [3, 3, 3];
% [MaxMean_Distance_Result] = MaxMean_Distance_R(v1, v2)
% (1 / numel(v1)) * sqrt(sum((v1 - v2) .^ 2))
%
% v1 = [1, 2, 20];
% v2 = [3, 3, 3; 4, 5, 6];
% [MaxMean_Distance_Result] = MaxMean_Distance_R(v1, v2)
%
% v1 = [1, 2, 20; 1, 3, 19];
% v2 = [3, 3, 3];
% [MaxMean_Distance_Result] = MaxMean_Distance_R(v1, v2)
%
% v1 = [1, 2, 20; 1, 3, 19];
% v2 = [3, 3, 3; 4, 5, 6];
% [MaxMean_Distance_Result] = MaxMean_Distance_R(v1, v2)
%
인용 양식
Reza Farrahi Moghaddam (2024). MaxMean Distance (https://www.mathworks.com/matlabcentral/fileexchange/50951-maxmean-distance), MATLAB Central File Exchange. 검색 날짜: .
MATLAB 릴리스 호환 정보
플랫폼 호환성
Windows macOS Linux카테고리
태그
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!MaxMean_Distance_R/
버전 | 게시됨 | 릴리스 정보 | |
---|---|---|---|
1.0.0.0 |