MaxMean Distance

This function calculates the MaxMean Distance of two vectors (or recursively rows of matrices).
120 download
Aggiornato 22 mag 2015

Visualizza la licenza

% 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)
%

Cita come

Reza Farrahi Moghaddam (2024). MaxMean Distance (https://www.mathworks.com/matlabcentral/fileexchange/50951-maxmean-distance), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2014b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0