Is there a possibility to do a clustering of a multidimensional matrix (example: 10x10x35)?

6 次查看(过去 30 天)
I have a series of prices, which i need to cluster. The problem is, that i have many different prices for each hour. I need to cluster the prices for all hours. How can i do that?

回答(1 个)

Akshat Dalal
Akshat Dalal 2023-11-19
Hi Nils,
I understand that you want to perform cluster analysis on multi-dimensional matrices. You could do so by extending the ‘k-means’ clustering algorithm to work on this multi-dimensional matrix. The cluster shapes would be multi-dimensional with a multi-dimensional point as its centre and standard Euclidean distance as its radius. You could also define the clusters with other metrics and distances such as ‘mahalanobis distance’ or ‘cosine similarity’ as per requirements. You can then extend the standard ‘k-means’ algorithm to work with these modified clusters and data points.
For example, cluster analysis of 3-D data can be done using the above technique. You could define spherical clusters with radius as a parameter or cuboidal clusters with parameters length, breadth, and height and then extend the ‘k-means’ algorithm to work on this 3-D data.
To read more about k-means clustering, please refer the following documentation: https://en.wikipedia.org/wiki/K-means_clustering
To read more about clustering using MATLAB, please refer the following documentation: https://www.mathworks.com/help/images/color-based-segmentation-using-k-means-clustering.html
I hope this helps.

类别

Help CenterFile Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by