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

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
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
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
[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
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
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
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
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
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
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
 

Recently uploaded (20)

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
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
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
[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
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day 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
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
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
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
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
 

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