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

WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
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
 

Recently uploaded (20)

WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
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
 

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