Can recognize what distance is this ?
    3 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
    Kamil Kacer
 le 13 Nov 2020
  
    
    
    
    
    Commenté : Kamil Kacer
 le 13 Nov 2020
            
Can anyone explain me what does this code do,
Could it be the after first if is calculated euclodean distance and in else there is second distance called mahalanobis distance ?
0 commentaires
Réponse acceptée
  Walter Roberson
      
      
 le 13 Nov 2020
        The clue is in the name of the variable: useL1Distance . If it is true, then the L1 norm is used, which is also called "taxi-cab distance".
If it is false, then the L2 norm is used, which is also called Euclidean distance.
Neither branch has anything to do with maholonobis distance.
Plus de réponses (1)
Voir également
Catégories
				En savoir plus sur Class Introspection and Metadata dans Help Center et File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


