Adaptive Sampling Kit (a mirror from http://code.google.com/p/adaptive-sampling-kit/)