[webinar] scientific computation and data visualization with ruby
TRANSCRIPT
![Page 1: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/1.jpg)
Scientific Computation and Data Visualization
in Ruby
![Page 2: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/2.jpg)
Sameer Deshmukhgithub.com/v0dro@v0dro
![Page 3: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/3.jpg)
RubyScienceFoundation
www.sciruby.com
@sciruby@sciruby
![Page 4: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/4.jpg)
![Page 5: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/5.jpg)
iruby notebook
![Page 6: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/6.jpg)
Browser based Ruby REPL for interactive computing.
![Page 7: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/7.jpg)
Runs in yourbrowser
Input cell – acceptsRuby code
Output cell – canrender HTML/CSS/JS
![Page 8: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/8.jpg)
![Page 9: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/9.jpg)
nmatrix
![Page 10: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/10.jpg)
n-dimensional array object.
Interface Ruby with high speed C libraries.
![Page 11: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/11.jpg)
require 'nmatrix'
n = NMatrix.new([2,2], [1,2,3,4], dtype: :float32,stype: :dense)
n[0,1] # => 2.0
![Page 12: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/12.jpg)
Data Types:int8 :float32
:int16 :float64
:int32 :complex64
:int64 :complex128
![Page 13: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/13.jpg)
Storage types
Dense Dense matrix.
List Sparse matrix type storing data as a linked list.
Yale Sparse type storing data in the 'New Yale' format.
![Page 14: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/14.jpg)
NMatrix C API
![Page 15: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/15.jpg)
nmatrix
nmatrix-atlas
nmatrix-lapacke
nmatrix-fftw gsl
![Page 16: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/16.jpg)
nmatrix is coming to jruby!
![Page 17: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/17.jpg)
nyaplot
![Page 18: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/18.jpg)
interactive plotting tool for Rubyists.
![Page 19: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/19.jpg)
interactive HTML and JavaScript plots that can be displayed in your
browser.
![Page 20: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/20.jpg)
![Page 21: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/21.jpg)
Mapnya
Nyaplot3D
Bionya
Map visualizations with inbuilt country charts.
Three Dimensional interactive plots.
Biology plots for visualizing relationships of genes.
![Page 22: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/22.jpg)
gnuplotrb
![Page 23: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/23.jpg)
Ruby wrapper over GNU Plot.
Convieniently exposes all GNU Plot functions through Ruby.
![Page 24: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/24.jpg)
require 'gnuplotrb'
plot = GnuplotRB::Plot.new([
[1,2.5,1.5,4], with: 'linespoints'
])
![Page 25: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/25.jpg)
![Page 26: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/26.jpg)
require 'gnuplotrb'
plot = GnuplotRB::Plot.new([
[1,2.5,1.5,4], with: 'linespoints'
],[
[2,3,4.3,3], with: 'lines'
])
![Page 27: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/27.jpg)
![Page 28: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/28.jpg)
statsample
![Page 29: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/29.jpg)
![Page 30: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/30.jpg)
daru(Data Analysis in RUby)
![Page 31: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/31.jpg)
daru ==(Hindi)
दा
![Page 32: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/32.jpg)
library for analysis, cleaning, manipulation and
visualization of data.
![Page 33: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/33.jpg)
Read/write many data sources
Ephemeral statistics functions
Works well with 'wild' data
Data indexing
![Page 34: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/34.jpg)
Acts as glue between other SciRuby libraries.
![Page 35: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/35.jpg)
Daru::VectorHeterogenous Array that can be indexed on any
Ruby object.
Name
Label(0)Label(1)Label(2)
...
Label(n-1)
![Page 36: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/36.jpg)
Daru::DataFrame2D spreadsheet like data structure indexed by
rows or columns.Col0
Label(0)Label(1)Label(2)
...
Label(n-1)
Col1 Col2 Col(n-1)
....
![Page 37: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/37.jpg)
Thank You Twitter: @v0droGitHub: @v0dro
![Page 38: [Webinar] Scientific Computation and Data Visualization with Ruby](https://reader031.vdocument.in/reader031/viewer/2022022203/587564471a28abd80a8b4b79/html5/thumbnails/38.jpg)
Any questions?