Blog Archives

Euclid Algorithm for Set of Integers: ‘Reduce’ vs. trees in R

May 7, 2014
By

The Euclid Algorithm provides a solution to the greatest common divisor (GCD) of two natural numbers $x_{1}$ and $x_{-2}$, denoted by $GCD(x_{1}, x_{2})$. This will produce the largest integer that divides $x_{1}$ and $x_{2}$. Solution is proposed by ...

Read more »

Particle approximation to probability density functions: Dirac delta function representation

January 17, 2014
By
Particle approximation to probability density functions: Dirac delta function representation

In the previous post, I have briefly shown the idea of using dirac delta function for discrete data representation. In the second example there, a histogram locations for a given set of points are presented as spike trains, where as heights are somehow...

Read more »

Demystify Dirac delta function for data representation on discrete space

November 20, 2013
By
Demystify Dirac delta function for data representation on discrete space

Dirac delta function is an important tool in Fourier Analysis. It is used specially in electrodynamics and signal processing routinely.  A function over set of data points is often shown with a delta function representation. A novice reader relyin...

Read more »

A technique for doing parametrized unit testing in R: Case study with stock price data analysis

September 13, 2013
By

Ensuring the quality and correctness of statistical or scientific software in general constitute as one fo the main responsibilities of scientific software developers and scientists who provide a code to solve a specific computational task. Sometimes t...

Read more »

Metaprogramming in R with an example: Beating lazy evaluation

September 5, 2013
By

Functional languages allows us to treat functions as types. This brings us a distinct advantage of being able to write a code that generates further code, this practise is generally known as metaprogramming. As a functional language R project provides ...

Read more »

Practicing static typing in R: Prime directive on trusting our functions with object oriented programming

June 13, 2013
By

The creator of S language which R is derived from John Chambers said in one of his books  Software for data analysis programming with R: ...This places an obligation on all creators of software to program in such away that the computations ca...

Read more »

Ripley Facts

June 10, 2013
By

Normally, this blog would only contain technical and scientific related posts. But this time I would like to share with you a very interesting phenomenon I came across on the R mailing list(s). I call it 'Ripley Facts' after the prolific statistician, ...

Read more »

Matrix Cumulative Coherence: Fourier Bases, Random and Sensing Matrices

April 9, 2013
By

Compressive sampling (CS) is revolutionizing the way we process analog to digital conversion, our understanding of linear systems and the limits of information theory. One of the key concept in CS is that a signal can be represented in a sparse bases o...

Read more »

R’s range and loop behaviour: Zero, One, NULL

January 30, 2013
By

One of the most common pattern in programming languages is to ability to iterate over a given set (a vector usually) by using 'for' loops. In most modern scripting languages range operations is a build in data structure and trivial to use with 'for' lo...

Read more »

Tensor Algebra: Efficient Operations on Multidimensional Arrays with R

January 25, 2013
By

 Multidimensional arrays are ubiquitous. Any complex problem having multivariate observables would easily generate a need to represent corresponding data in multidimensional arrays. Most of the practitioners would choose to apply operations on the...

Read more »