-
Recent Posts
- Matplotlib Quick Starter
- RcppArmadillo Test Notes – A Step-by-Step Tutorial to Create Your Own R Package Based on RcppArmadillo
- .m Function to .oct File – Syntax Translation Table
- Blender for Data Visualization – Updated Code for Blender 2.6
- Blender for Data Visualization Part 2 – Render Output as Vector Graphics
Archives
Categories
Meta
Category Archives: programming
Matplotlib Quick Starter
Introduction Matplotlib is an open source plotting library for Python (NumPy), designed closely to MATLAB. Last update to this tutorial is on: 2017-04-20. Installation Python 3.X (with many useful libs such NumPy, Matplotlib) & Jupyter notebook (GUI Python Code Editor, … Continue reading
Posted in data visualization, programming, Python
Leave a comment
RcppArmadillo Test Notes – A Step-by-Step Tutorial to Create Your Own R Package Based on RcppArmadillo
Test environment: R version 3.2.2 Rtools 33 Windows 7 64-bit Install the packages “Rcpp”, “RcppArmadillo” and “inline” for R. Download and install Rtools at https://cran.r-project.org/bin/windows/Rtools/, which is needed for building packages for R under Microsoft Windows. When installing, check the … Continue reading
.m Function to .oct File – Syntax Translation Table
One of the things Octave is superior to Matlab is Octave’s C++ code interface – Oct-Files. With Oct-Files, you can use a similar syntax in C++ as in the m language, which is much more convenient than the Matlab’s .mex … Continue reading
Posted in matlab/octave, programming
Leave a comment
Blender for Data Visualization – Updated Code for Blender 2.6
Finally I updated the data visualization code from Blender 2.49 to Blender 2.6. You can find the updated Python source code here: https://bzstat.googlecode.com/svn/trunk/DataVisualization/Blender/Update_2.6 The Blender Python APIs changed a lot since Blender 2.5, but the biggest problem is lack of … Continue reading
Posted in data visualization, programming, Python
Leave a comment
Blender for Data Visualization Part 2 – Render Output as Vector Graphics
In my last post, I showed you the basics to use Blender and Python for data visualization. Python is a powerful language which is very suitable for (large) data set processing, we may further explore it later. Blender is one … Continue reading
Posted in data visualization, programming, Python
5 Comments
Blender for Data Visualization
There are many tools and languages for visualizing data, such as R (1 , 2, 3), Processing, Flash (1, 2, 3). And the powerful open source 3D editor Blender is of course one of them. The advantage of using Blender … Continue reading
Posted in data visualization, programming, Python
4 Comments
Using SDL and OpenGL in R
SDL(Simple DirectMedia Layer) is “A cross-platform multimedia library designed to provide fast access to the graphics framebuffer and audio device”. OpenGL is “The Industry Standard for High Performance Graphics”. With rdyncall package, which provides “a cross-platform framework for dynamic binding of … Continue reading
Posted in programming, r
1 Comment
Using Lib FANN in R via Rcpp
Test Environment: OS: Windows XP, R: R 2.12.2(G:\Program Files\R\R-2.12.2\), Rcpp: 0.9.4, Rtools: 212 (G:\Rtools), FANN: 2.1.0 Lib FANN(Fast Artificial Neural Network Library) is a free open source neural network library written in C. In this tutorial I will show you … Continue reading
Posted in programming, r
Leave a comment
The Rcpp package test notes
Test Environment: OS: Windows XP, R: R 2.12.2(G:\Program Files\R\R-2.12.2\), Rcpp: 0.9.4 1. Download and install the Rtools(for windows): http://www.murdoch-sutherland.com/Rtools/ I installed the Rtools into “G:\Rtools“. 2. Set Enviroment Path for windows: Desktop -> right-click My Computer -> click Properties -> … Continue reading
Posted in programming, r
1 Comment
R Tricks – Macros and Conditional Execution in R
1 Use Macros in R Problem You want to use C-like macros, such as “#define” in R. Solution Use “defmacro” in {gtools} pacakge. http://cran.r-project.org/web/packages/gtools/index.html https://stat.ethz.ch/pipermail/r-help/2007-April/130015.html 2 Conditional Execution Problem You want to use C-like macros, such as “#include” and C-like … Continue reading
Posted in programming, r
Leave a comment