Friday, October 8, 2010
Thursday, October 7, 2010
Variance
Different programs implement variance in different ways. This can lead to confusing results when you move from one set of functions to another.
scipy.stats.cov() normalizes by (N-1), by default, bias=False. By setting bias=True, you will normalize by N.
However, scipy.var() normalizes by N.
In Octave, var( x, 0 ) biases by N-1, and var( x, 1 ) biases by N.
Matlab and R, I think, do things slightly differently.
scipy.stats.cov() normalizes by (N-1), by default, bias=False. By setting bias=True, you will normalize by N.
However, scipy.var() normalizes by N.
In Octave, var( x, 0 ) biases by N-1, and var( x, 1 ) biases by N.
Matlab and R, I think, do things slightly differently.
Friday, October 1, 2010
NumPy and Input/Output
Super dooper resource for NUmPy I/O can be found here. Includes information on how to interpret binary data, and use the NumPy alias of the the MATLAB fread() function.
Wednesday, September 29, 2010
Monday, September 27, 2010
CUDA, PyCUDA, and PyCUBLAS
Andreas Klöckner's PyCUDA page.
Some documentation for PyCUDA and PyOpenCL.
Moire Patterns using PyCUDA and PyGame.
Use PyCUBLAS to multiply matrices smaller than 65536-by-65536.
Some documentation for PyCUDA and PyOpenCL.
Moire Patterns using PyCUDA and PyGame.
Use PyCUBLAS to multiply matrices smaller than 65536-by-65536.
Subscribe to:
Posts (Atom)