聚类喷泉爆发
可视化老忠实喷泉喷发的属性.
In[1]:=
eruptions = ExampleData[{"Statistics", "OldFaithful"}];
ListPlot[data,
FrameLabel -> {"Eruption time in minutes",
"Waiting time to next eruption in minutes"}, Frame -> True]
Out[1]=
计算分割喷发的分类器.
In[2]:=
c = ClusterClassify[eruptions]
Out[2]=
可视化聚类.
In[3]:=
clusters = GatherBy[data, c];
ListPlot[clusters,
FrameLabel -> {"Eruption time in minutes",
"Waiting time to next eruption in minutes"}, Frame -> True]
Out[3]=