자신의 특성에 기반한 분자의 그룹화
ChemicalData에서 산의 데이터를 로드하여 그 화학식과 특성을 추출합니다.
In[1]:=
![Click for copyable input](assets.ko/cluster-molecules-based-on-their-properties/In_27.png)
acids = Take[ChemicalData["Acids"], {3, 18}]
Out[1]=
![](assets.ko/cluster-molecules-based-on-their-properties/O_20.png)
In[2]:=
![Click for copyable input](assets.ko/cluster-molecules-based-on-their-properties/In_28.png)
properties =
Outer[ChemicalData, acids, {"MolarMass", "MeltingPoint"}, 1]
Out[2]=
![](assets.ko/cluster-molecules-based-on-their-properties/O_21.png)
In[3]:=
![Click for copyable input](assets.ko/cluster-molecules-based-on-their-properties/In_29.png)
formulas = ChemicalData[#, "Formula"] & /@ acids
Out[3]=
![](assets.ko/cluster-molecules-based-on-their-properties/O_22.png)
특성에 기반하여 산의 계층적 클러스터를 시각화합니다.
In[4]:=
![Click for copyable input](assets.ko/cluster-molecules-based-on-their-properties/In_30.png)
ClusteringTree[properties -> formulas]
Out[4]=
![](assets.ko/cluster-molecules-based-on-their-properties/O_23.png)