statistical functions in lua, use all partioning files
use all partitioning files