网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

用Mathematica对数据进行聚类分析

时间:2024-11-03 07:03:00

1、给出一组数据:a = RandomReal[{-10巳呀屋饔, 10}, 20];聚类:FindClusters[a]Mathematica把这组数据分为两类。

用Mathematica对数据进行聚类分析

2、如果希望分为不多于4类,需要指定分组:FindClusters[a, 4]

用Mathematica对数据进行聚类分析

3、随机给出一组平面上的点集:a = RandomReal[{-10, 10}, {10000, 2娅势毁歹}];分成三类,并画图:b = FindClusters[a荑樊综鲶, 3];ListPlot[%, AspectRatio -> Automatic]

用Mathematica对数据进行聚类分析

4、分成8类。

用Mathematica对数据进行聚类分析

5、三维空间的点分成三类,并用凸包分隔。

用Mathematica对数据进行聚类分析用Mathematica对数据进行聚类分析
© 2025 小知经验
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com