SlideShare a Scribd company logo
1 of 15
> x <- iris[, 1:4]
> dim(x)
[1] 150   4
> cl <- kmeans(x, 3, nstart=10)
> print(cl)
K-means clustering with 3 clusters of sizes 50, 38, 62

Cluster means:
  Sepal.Length Sepal.Width Petal.Length Petal.Width
1     5.006000    3.428000     1.462000    0.246000
2     6.850000    3.073684     5.742105    2.071053
3     5.901613    2.748387     4.393548    1.433871

Clustering vector:
  [1] 1 1 1 1 1 1 1   1   1   1   1   1   1   1   1   1   1   1   1   1   1   1   1   1   1   1   1   1   1   1   1   1   1 1 1 1 1 1 1
 [40] 1 1 1 1 1 1 1   1   1   1   1   3   3   2   3   3   3   3   3   3   3   3   3   3   3   3   3   3   3   3   3   3   3 3 3 3 3 3 2
 [79] 3 3 3 3 3 3 3   3   3   3   3   3   3   3   3   3   3   3   3   3   3   3   2   3   2   2   2   2   3   2   2   2   2 2 2 3 3 2 2
[118] 2 2 3 2 3 2 3   2   2   3   3   2   2   2   2   2   3   2   2   2   2   3   2   2   2   3   2   2   2   3   2   2   3

Within cluster sum of squares by cluster:
[1] 15.15100 23.87947 39.82097
 (between_SS / total_SS = 88.4 %)

Available components:

[1] "cluster"      "centers"                      "totss"                      "withinss"                     "tot.withinss"
[6] "betweenss"    "size"
> plot(x, col=cl$cluster)
> for (i in 0:26) {                   > install.packages(“tuneR”)
+   print (round(2^(i/12.0)*221.0))   > library(tuneR)
+ }                                   > scale <- bind(sine(263, bit=16), # C
[1] 221 # A                                           sine(295, bit=16), # D
[1] 234 # Bb                                          sine(313, bit=16), # E
[1] 248 # B                                           sine(351, bit=16), # F
[1] 263 # C                                           sine(394, bit=16), # G
[1] 278 # Db                                          sine(442, bit=16), # A
[1] 295 # D                                           sine(496, bit=16)) # B
[1] 313 # Eb                          > writeWave(scale, "C_Major_Scale.wav")
[1] 331 # E                           > scale <- bind(sine(263, bit=16), # C
[1] 351 # F                                           sine(295, bit=16), # D
[1] 372 # Gb                                          sine(313, bit=16), # Eb
[1] 394 # G                                           sine(351, bit=16), # F
[1] 417 # Ab                                          sine(394, bit=16), # G
[1] 442 # A                                           sine(417, bit=16), # Ab
[1] 468 # Bb                                          sine(468, bit=16)) # Bb
[1] 496 # B                           > writeWave(scale, "C_Natural_Minor_Scale.wav")
[1] 526 # C
[1] 557 # Db
[1] 590 # D
[1] 625 # Eb
[1] 662 # E
[1] 702 # F
[1] 743 # Gb
[1] 788 # G
[1] 834 # Ab
[1] 884 # A
[1] 937 # Bb
[1] 1051 # B
> for (i in 0:26) {                   > install.packages(“tuneR”)
+   print (round(2^(i/12.0)*221.0))   > library(tuneR)
+ }                                   > scale <- bind(sine(263, bit=16), # C
[1] 221 # A                                           sine(295, bit=16), # D
[1] 234 # Bb                                          sine(313, bit=16), # E
[1] 248 # B                                           sine(351, bit=16), # F
[1] 263 # C                                           sine(394, bit=16), # G
[1] 278 # Db                                          sine(442, bit=16), # A
[1] 295 # D                                           sine(496, bit=16)) # B
[1] 313 # Eb                          > writeWave(scale, "C_Major_Scale.wav")
[1] 331 # E                           > scale <- bind(sine(263, bit=16), # C
[1] 351 # F                                           sine(295, bit=16), # D
[1] 372 # Gb                                          sine(313, bit=16), # Eb
[1] 394 # G                                           sine(351, bit=16), # F
[1] 417 # Ab                                          sine(394, bit=16), # G
[1] 442 # A                                           sine(417, bit=16), # Ab
[1] 468 # Bb                                          sine(468, bit=16)) # Bb
[1] 496 # B                           > writeWave(scale, "C_Natural_Minor_Scale.wav")
[1] 526 # C
[1] 557 # Db
[1] 590 # D
[1] 625 # Eb
[1] 662 # E
[1] 702 # F
[1] 743 # Gb
[1] 788 # G
[1] 834 # Ab
[1] 884 # A
[1] 937 # Bb
[1] 1051 # B
> for (i in 0:26) {                   > install.packages(“tuneR”)
+   print (round(2^(i/12.0)*221.0))   > library(tuneR)
+ }                                   > scale <- bind(sine(263, bit=16), # C
[1] 221 # A                                           sine(295, bit=16), # D
[1] 234 # Bb                                          sine(313, bit=16), # E
[1] 248 # B                                           sine(351, bit=16), # F
[1] 263 # C                                           sine(394, bit=16), # G
[1] 278 # Db                                          sine(442, bit=16), # A
[1] 295 # D                                           sine(496, bit=16)) # B
[1] 313 # Eb                          > writeWave(scale, "C_Major_Scale.wav")
[1] 331 # E                           > scale <- bind(sine(263, bit=16), # C
[1] 351 # F                                           sine(295, bit=16), # D
[1] 372 # Gb                                          sine(313, bit=16), # Eb
[1] 394 # G                                           sine(351, bit=16), # F
[1] 417 # Ab                                          sine(394, bit=16), # G
[1] 442 # A                                           sine(417, bit=16), # Ab
[1] 468 # Bb                                          sine(468, bit=16)) # Bb
[1] 496 # B                           > writeWave(scale, "C_Natural_Minor_Scale.wav")
[1] 526 # C
[1] 557 # Db
[1] 590 # D
[1] 625 # Eb
[1] 662 # E
[1] 702 # F
[1] 743 # Gb
[1] 788 # G
[1] 834 # Ab
[1] 884 # A
[1] 937 # Bb
[1] 1051 # B
Japan.
—   R    —
Rの紹介
Rの紹介

More Related Content

What's hot

What's hot (11)

Quadratic Functions Min Max
Quadratic Functions Min MaxQuadratic Functions Min Max
Quadratic Functions Min Max
 
Numpy python cheat_sheet
Numpy python cheat_sheetNumpy python cheat_sheet
Numpy python cheat_sheet
 
My Book
My BookMy Book
My Book
 
CLUSTERGRAM
CLUSTERGRAMCLUSTERGRAM
CLUSTERGRAM
 
Fibonacci optimisation
Fibonacci optimisationFibonacci optimisation
Fibonacci optimisation
 
Math place value
Math place valueMath place value
Math place value
 
Jacobi method for MATLAB
Jacobi method for MATLAB Jacobi method for MATLAB
Jacobi method for MATLAB
 
Symbolic Regression on Network Properties
Symbolic Regression on Network PropertiesSymbolic Regression on Network Properties
Symbolic Regression on Network Properties
 
Application of Derivative 7
Application of Derivative 7Application of Derivative 7
Application of Derivative 7
 
Basic Calculus in R.
Basic Calculus in R. Basic Calculus in R.
Basic Calculus in R.
 
Advanced Concepts in Python
Advanced Concepts in PythonAdvanced Concepts in Python
Advanced Concepts in Python
 

Viewers also liked

Tokyo r25 hiro_macchan
Tokyo r25 hiro_macchanTokyo r25 hiro_macchan
Tokyo r25 hiro_macchanHiroki Matsui
 
Microsoft Data Science Technologies: Architecture Edition 201509
Microsoft Data Science Technologies: Architecture Edition 201509Microsoft Data Science Technologies: Architecture Edition 201509
Microsoft Data Science Technologies: Architecture Edition 201509Mark Tabladillo
 
eRum2016 -RevoScaleR - Performance and Scalability R
eRum2016 -RevoScaleR - Performance and Scalability ReRum2016 -RevoScaleR - Performance and Scalability R
eRum2016 -RevoScaleR - Performance and Scalability RŁukasz Grala
 
バギングで構築された各決定木
バギングで構築された各決定木バギングで構築された各決定木
バギングで構築された各決定木Hidekazu Tanaka
 
[R勉強会][データマイニング] プロセス・リソース・グラフと数理統計解析
[R勉強会][データマイニング] プロセス・リソース・グラフと数理統計解析[R勉強会][データマイニング] プロセス・リソース・グラフと数理統計解析
[R勉強会][データマイニング] プロセス・リソース・グラフと数理統計解析Koichi Hamada
 
Data Analytics with R and SQL Server
Data Analytics with R and SQL ServerData Analytics with R and SQL Server
Data Analytics with R and SQL ServerStéphane Fréchette
 
RのffとbigmemoryとRevoScaleRとを比較してみた
RのffとbigmemoryとRevoScaleRとを比較してみたRのffとbigmemoryとRevoScaleRとを比較してみた
RのffとbigmemoryとRevoScaleRとを比較してみたKazuya Wada
 
SQL Server 2016 R Services + Microsoft R Server 技術資料
SQL Server 2016 R Services + Microsoft R Server 技術資料SQL Server 2016 R Services + Microsoft R Server 技術資料
SQL Server 2016 R Services + Microsoft R Server 技術資料Koichiro Sasaki
 
Building a scalable data science platform with R
Building a scalable data science platform with RBuilding a scalable data science platform with R
Building a scalable data science platform with RRevolution Analytics
 
20160220 MSのビッグデータ分析基盤 - データマイニング+WEB@東京
20160220 MSのビッグデータ分析基盤 - データマイニング+WEB@東京20160220 MSのビッグデータ分析基盤 - データマイニング+WEB@東京
20160220 MSのビッグデータ分析基盤 - データマイニング+WEB@東京Koichiro Sasaki
 
Rにおける大規模データ解析(第10回TokyoWebMining)
Rにおける大規模データ解析(第10回TokyoWebMining)Rにおける大規模データ解析(第10回TokyoWebMining)
Rにおける大規模データ解析(第10回TokyoWebMining)Shintaro Fukushima
 
What Would Steve Do? 10 Lessons from the World's Most Captivating Presenters
What Would Steve Do? 10 Lessons from the World's Most Captivating PresentersWhat Would Steve Do? 10 Lessons from the World's Most Captivating Presenters
What Would Steve Do? 10 Lessons from the World's Most Captivating PresentersHubSpot
 

Viewers also liked (17)

Tokyo r25 hiro_macchan
Tokyo r25 hiro_macchanTokyo r25 hiro_macchan
Tokyo r25 hiro_macchan
 
R meets Hadoop
R meets HadoopR meets Hadoop
R meets Hadoop
 
Microsoft Data Science Technologies: Architecture Edition 201509
Microsoft Data Science Technologies: Architecture Edition 201509Microsoft Data Science Technologies: Architecture Edition 201509
Microsoft Data Science Technologies: Architecture Edition 201509
 
Self-rotating sampling design
Self-rotating sampling designSelf-rotating sampling design
Self-rotating sampling design
 
eRum2016 -RevoScaleR - Performance and Scalability R
eRum2016 -RevoScaleR - Performance and Scalability ReRum2016 -RevoScaleR - Performance and Scalability R
eRum2016 -RevoScaleR - Performance and Scalability R
 
バギングで構築された各決定木
バギングで構築された各決定木バギングで構築された各決定木
バギングで構築された各決定木
 
Microsoft R Server
Microsoft R ServerMicrosoft R Server
Microsoft R Server
 
[R勉強会][データマイニング] プロセス・リソース・グラフと数理統計解析
[R勉強会][データマイニング] プロセス・リソース・グラフと数理統計解析[R勉強会][データマイニング] プロセス・リソース・グラフと数理統計解析
[R勉強会][データマイニング] プロセス・リソース・グラフと数理統計解析
 
Data Analytics with R and SQL Server
Data Analytics with R and SQL ServerData Analytics with R and SQL Server
Data Analytics with R and SQL Server
 
RでMapreduce
RでMapreduceRでMapreduce
RでMapreduce
 
RのffとbigmemoryとRevoScaleRとを比較してみた
RのffとbigmemoryとRevoScaleRとを比較してみたRのffとbigmemoryとRevoScaleRとを比較してみた
RのffとbigmemoryとRevoScaleRとを比較してみた
 
SQL Server 2016 R Services + Microsoft R Server 技術資料
SQL Server 2016 R Services + Microsoft R Server 技術資料SQL Server 2016 R Services + Microsoft R Server 技術資料
SQL Server 2016 R Services + Microsoft R Server 技術資料
 
Building a scalable data science platform with R
Building a scalable data science platform with RBuilding a scalable data science platform with R
Building a scalable data science platform with R
 
20160220 MSのビッグデータ分析基盤 - データマイニング+WEB@東京
20160220 MSのビッグデータ分析基盤 - データマイニング+WEB@東京20160220 MSのビッグデータ分析基盤 - データマイニング+WEB@東京
20160220 MSのビッグデータ分析基盤 - データマイニング+WEB@東京
 
Rにおける大規模データ解析(第10回TokyoWebMining)
Rにおける大規模データ解析(第10回TokyoWebMining)Rにおける大規模データ解析(第10回TokyoWebMining)
Rにおける大規模データ解析(第10回TokyoWebMining)
 
R at Microsoft
R at MicrosoftR at Microsoft
R at Microsoft
 
What Would Steve Do? 10 Lessons from the World's Most Captivating Presenters
What Would Steve Do? 10 Lessons from the World's Most Captivating PresentersWhat Would Steve Do? 10 Lessons from the World's Most Captivating Presenters
What Would Steve Do? 10 Lessons from the World's Most Captivating Presenters
 

More from Hidekazu Tanaka

ggplot2 に入門してみた
ggplot2 に入門してみたggplot2 に入門してみた
ggplot2 に入門してみたHidekazu Tanaka
 
データベースのお話
データベースのお話データベースのお話
データベースのお話Hidekazu Tanaka
 
アンサンブル学習
アンサンブル学習アンサンブル学習
アンサンブル学習Hidekazu Tanaka
 
Rで解く最適化問題 線型計画問題編
Rで解く最適化問題   線型計画問題編 Rで解く最適化問題   線型計画問題編
Rで解く最適化問題 線型計画問題編 Hidekazu Tanaka
 
Rによるやさしい統計学 第16章 : 因子分析
Rによるやさしい統計学 第16章 : 因子分析Rによるやさしい統計学 第16章 : 因子分析
Rによるやさしい統計学 第16章 : 因子分析Hidekazu Tanaka
 

More from Hidekazu Tanaka (8)

ggplot2 に入門してみた
ggplot2 に入門してみたggplot2 に入門してみた
ggplot2 に入門してみた
 
データベースのお話
データベースのお話データベースのお話
データベースのお話
 
フォントのお話
フォントのお話フォントのお話
フォントのお話
 
フォントのお話
フォントのお話フォントのお話
フォントのお話
 
アンサンブル学習
アンサンブル学習アンサンブル学習
アンサンブル学習
 
RHadoop の紹介
RHadoop の紹介RHadoop の紹介
RHadoop の紹介
 
Rで解く最適化問題 線型計画問題編
Rで解く最適化問題   線型計画問題編 Rで解く最適化問題   線型計画問題編
Rで解く最適化問題 線型計画問題編
 
Rによるやさしい統計学 第16章 : 因子分析
Rによるやさしい統計学 第16章 : 因子分析Rによるやさしい統計学 第16章 : 因子分析
Rによるやさしい統計学 第16章 : 因子分析
 

Recently uploaded

SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 

Recently uploaded (20)

SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 

Rの紹介

  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6. > x <- iris[, 1:4] > dim(x) [1] 150 4 > cl <- kmeans(x, 3, nstart=10) > print(cl) K-means clustering with 3 clusters of sizes 50, 38, 62 Cluster means: Sepal.Length Sepal.Width Petal.Length Petal.Width 1 5.006000 3.428000 1.462000 0.246000 2 6.850000 3.073684 5.742105 2.071053 3 5.901613 2.748387 4.393548 1.433871 Clustering vector: [1] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 [40] 1 1 1 1 1 1 1 1 1 1 1 3 3 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 2 [79] 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 2 3 2 2 2 2 3 2 2 2 2 2 2 3 3 2 2 [118] 2 2 3 2 3 2 3 2 2 3 3 2 2 2 2 2 3 2 2 2 2 3 2 2 2 3 2 2 2 3 2 2 3 Within cluster sum of squares by cluster: [1] 15.15100 23.87947 39.82097 (between_SS / total_SS = 88.4 %) Available components: [1] "cluster" "centers" "totss" "withinss" "tot.withinss" [6] "betweenss" "size"
  • 8. > for (i in 0:26) { > install.packages(“tuneR”) + print (round(2^(i/12.0)*221.0)) > library(tuneR) + } > scale <- bind(sine(263, bit=16), # C [1] 221 # A sine(295, bit=16), # D [1] 234 # Bb sine(313, bit=16), # E [1] 248 # B sine(351, bit=16), # F [1] 263 # C sine(394, bit=16), # G [1] 278 # Db sine(442, bit=16), # A [1] 295 # D sine(496, bit=16)) # B [1] 313 # Eb > writeWave(scale, "C_Major_Scale.wav") [1] 331 # E > scale <- bind(sine(263, bit=16), # C [1] 351 # F sine(295, bit=16), # D [1] 372 # Gb sine(313, bit=16), # Eb [1] 394 # G sine(351, bit=16), # F [1] 417 # Ab sine(394, bit=16), # G [1] 442 # A sine(417, bit=16), # Ab [1] 468 # Bb sine(468, bit=16)) # Bb [1] 496 # B > writeWave(scale, "C_Natural_Minor_Scale.wav") [1] 526 # C [1] 557 # Db [1] 590 # D [1] 625 # Eb [1] 662 # E [1] 702 # F [1] 743 # Gb [1] 788 # G [1] 834 # Ab [1] 884 # A [1] 937 # Bb [1] 1051 # B
  • 9. > for (i in 0:26) { > install.packages(“tuneR”) + print (round(2^(i/12.0)*221.0)) > library(tuneR) + } > scale <- bind(sine(263, bit=16), # C [1] 221 # A sine(295, bit=16), # D [1] 234 # Bb sine(313, bit=16), # E [1] 248 # B sine(351, bit=16), # F [1] 263 # C sine(394, bit=16), # G [1] 278 # Db sine(442, bit=16), # A [1] 295 # D sine(496, bit=16)) # B [1] 313 # Eb > writeWave(scale, "C_Major_Scale.wav") [1] 331 # E > scale <- bind(sine(263, bit=16), # C [1] 351 # F sine(295, bit=16), # D [1] 372 # Gb sine(313, bit=16), # Eb [1] 394 # G sine(351, bit=16), # F [1] 417 # Ab sine(394, bit=16), # G [1] 442 # A sine(417, bit=16), # Ab [1] 468 # Bb sine(468, bit=16)) # Bb [1] 496 # B > writeWave(scale, "C_Natural_Minor_Scale.wav") [1] 526 # C [1] 557 # Db [1] 590 # D [1] 625 # Eb [1] 662 # E [1] 702 # F [1] 743 # Gb [1] 788 # G [1] 834 # Ab [1] 884 # A [1] 937 # Bb [1] 1051 # B
  • 10. > for (i in 0:26) { > install.packages(“tuneR”) + print (round(2^(i/12.0)*221.0)) > library(tuneR) + } > scale <- bind(sine(263, bit=16), # C [1] 221 # A sine(295, bit=16), # D [1] 234 # Bb sine(313, bit=16), # E [1] 248 # B sine(351, bit=16), # F [1] 263 # C sine(394, bit=16), # G [1] 278 # Db sine(442, bit=16), # A [1] 295 # D sine(496, bit=16)) # B [1] 313 # Eb > writeWave(scale, "C_Major_Scale.wav") [1] 331 # E > scale <- bind(sine(263, bit=16), # C [1] 351 # F sine(295, bit=16), # D [1] 372 # Gb sine(313, bit=16), # Eb [1] 394 # G sine(351, bit=16), # F [1] 417 # Ab sine(394, bit=16), # G [1] 442 # A sine(417, bit=16), # Ab [1] 468 # Bb sine(468, bit=16)) # Bb [1] 496 # B > writeWave(scale, "C_Natural_Minor_Scale.wav") [1] 526 # C [1] 557 # Db [1] 590 # D [1] 625 # Eb [1] 662 # E [1] 702 # F [1] 743 # Gb [1] 788 # G [1] 834 # Ab [1] 884 # A [1] 937 # Bb [1] 1051 # B
  • 11.
  • 12.
  • 13. Japan. — R —

Editor's Notes

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. A&amp;#x306E;&amp;#x97F3;&amp;#x304C;221Hz, 442Hz, 884Hz\n1&amp;#x30AA;&amp;#x30AF;&amp;#x30BF;&amp;#x30FC;&amp;#x30D6;&amp;#x6BCE;&amp;#x306B;2&amp;#x306E;N&amp;#x4E57;&amp;#x500D;&amp;#x306B;&amp;#x306A;&amp;#x3063;&amp;#x3066;&amp;#x3044;&amp;#x308B;\n
  9. A&amp;#x306E;&amp;#x97F3;&amp;#x304C;221Hz, 442Hz, 884Hz\n1&amp;#x30AA;&amp;#x30AF;&amp;#x30BF;&amp;#x30FC;&amp;#x30D6;&amp;#x6BCE;&amp;#x306B;2&amp;#x306E;N&amp;#x4E57;&amp;#x500D;&amp;#x306B;&amp;#x306A;&amp;#x3063;&amp;#x3066;&amp;#x3044;&amp;#x308B;\n
  10. \n
  11. \n
  12. \n
  13. \n