ProgrameR

Outer product of two vectors in Fortran

Posted in Mathmatics, Statistics by emeryyi on May 22, 2010

Unfortunately, no outer product intrinsic function available in Fortran. Outer product return a matrix from two user-provided vector a and b,

where

(more…)

Tagged with:

Fortran Intrinsic Function for Lasso thresholding rule

Posted in Statistics by emeryyi on May 22, 2010

In Lasso solution, the thresholding rule is

Which can be achieved in Fortran by

sign(dim(abs(a),b),a)

(more…)

Tagged with: ,

Indenting lines in gedit under Linux 10.04 lucid-lynx

Posted in Linux by emeryyi on May 21, 2010

In Linux 10.04 gedit lines indent plugin no longer exists, indention shortcuts now are replace by shortcut “Tab” and “shift+Tab” instead. No extra plugin is needed anymore.

Tagged with:

Enable Aero Snap effect under Metacity in Linux

Posted in Linux by emeryyi on May 21, 2010

Waffleshop’s blog http://www.thewaffleshop.net/2010/03/08/aero-snap-effect-for-metacity/ gives some terminal command which enables Linux to have Aero snap feature like windows 7. This is much faster and resource efficient than its counterpart run under Compiz. You must have Metacity and wmctrl installed. To use it shortcut is WIN+<- and WIN+->

(more…)

Tagged with: ,