Skip to content

kwsk-h/K-means

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

K-means

K-means clustering

ISO C++ 17 以降

WARNING: Be careful!
現状,クラスタの指定をカラーにしているためクラスタ数3から増やすとエラー

Default DATA

dataフォルダに以下のデータがある.

data_subA_20211001.csv\
data_subA_20211002.csv\
data_subA_20211003.csv\
data_subA_20211004.csv\
data_subA_20211005.csv

data_subB_20211001.csv\
data_subB_20211002.csv\
data_subB_20211003.csv\
data_subB_20211004.csv\
data_subB_20211005.csv

data_subC_20211001.csv\
data_subC_20211002.csv\
data_subC_20211003.csv\
data_subC_20211004.csv\
data_subC_20211005.csv

Kmeans_main.cppの以下のXXXX部分に,使いたいデータに含まれる文字列を入れて指定.(例:"1001", "sub")

28  vector<string> useData = {"XXXX","XXXX", ... }; 

About

K-means clustering

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages