Hi,
I am running the "clusterDBSCAN" algorithm from the Phased Array Toolbox.
I try to get this example to run.
My code is:
clusterer = clusterDBSCAN('EpsilonSource','Auto','MaxNumPoints',15, ...
'MinNumPoints', 5);
update= 1;
idx = clusterer(X,update);
X is a 100 x 2 matrix in type double.
But the output error is:
"Error using phased.internal.AbstractClusterDBSCAN/validateInputsImpl (line 274)
Expected input UPDATE data type to be double."
Thank you for your help.

 Respuesta aceptada

Adam Danz
Adam Danz el 31 de Mzo. de 2020
Editada: Adam Danz el 31 de Mzo. de 2020

0 votos

The update variable in your code is equal to 1 and is entered as the 2nd input to the clusterer but it doesn't fulfill the requirements for the 2nd input.
The 2nd input specifies ambiguity limits which should either be a real-valued 1-by-2 vector or real-valued 2-by-2 matrix. For more info, see the link.
[___] = clusterer(X,update)
The 2nd input specifies the automatic update of epsilon where update is a logical value (true|false). In your case, update is 1, not true. To enable this syntax, set the EpsilonSource property to 'Auto', optionally set the MaxNumPoints property, and also optionally set the EpsilonHistoryLength property.

4 comentarios

Christian Metz
Christian Metz el 31 de Mzo. de 2020
I understood it like that when EnableDisambiguation property is set to false. Then the the second input is update.
Further, I do not want to use abiguities, that means I want to ignore that input or make it not influence the result.
Adam Danz
Adam Danz el 31 de Mzo. de 2020
Editada: Adam Danz el 31 de Mzo. de 2020
Thanks, I now see which syntax you are using. I updated my answer. Change the 1 to true.
idx = clusterer(X,true)
Christian Metz
Christian Metz el 31 de Mzo. de 2020
Thanks that works. Weird I tried this before and it did not.
Thank you.
Adam Danz
Adam Danz el 31 de Mzo. de 2020
Editada: Adam Danz el 31 de Mzo. de 2020
Glad I could help.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Get Started with Phased Array System Toolbox en Centro de ayuda y File Exchange.

Productos

Versión

R2019b

Preguntada:

el 31 de Mzo. de 2020

Editada:

el 31 de Mzo. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by