pdist custom distance function.

6 visualizaciones (últimos 30 días)
giovanni grieco
giovanni grieco el 5 de Mzo. de 2017
Respondida: Walter Roberson el 5 de Mzo. de 2017
I have to use this distance in the pdist function:
norm((log(cov_1) - log(cov_2)),'fro')
I have already read the pdist documentation but I have not figured out how to define and call my distance in pdist.
someone could help, maybe with an example.

Respuesta aceptada

Walter Roberson
Walter Roberson el 5 de Mzo. de 2017
distfun = @(cov_1, cov_2) norm((log(cov_1) - log(cov_2)),'fro');
pdist(YourData, distfun)

Más respuestas (0)

Categorías

Más información sobre Statistics and Machine Learning Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by