I wrote a paper on sequential permutation test with Tim Bancroft and Dan Nettleton.
The paper "T. Bancroft, C. Du and D. Nettleton (2012).
Estimation of False Discovery Rate Using Sequential Permutation PValues."
has been accepted by Biometrics. To illustrate ideas in the paper and make sequential
permutation test …
Dual Monitor for Linux Desktop
- Type
xrandrorxrandr -qin terminal to dispaly information of all available output device. Then you can use the following commands to set dual display.xrandr --output VGA1 --auto xrandr --output VGA1 --same-as LVDS1 --auto xrandr --output VGA1 --mode 1024x800 xrandr --output VGA1 --off
where VGA1 and LVDS1 should …
String in Java
String
Which One Is the Best Strategy?

Another interesting problem I met in statistic is: suppose we flip a coin which has probability 0.7 to be head again and again and two people choose two different sequences of length 3 (e.g. THH). The people whose sequence appears first wins. If you're allowed to choose first …
Performance Tips for C++
Performance
-
If there is some block of useless code, the compile is smart enough to ignore it and thus speed up the program.
-
Use the option
-O2to generate optimized code when you are ready to publish your code. -
Define variables only when needed to avoid the overhead of creating …
Lambda Function in C++11
Lambda Function
Check [here[(https://github.com/dclong/cearn/tree/master/lambda) for illustrative examples for the following discussions.
-
When capture variables, you can define new variables in the
[]of a lambda expression. For example, if a lambda function need the sum of two double variablexandy, you …