A PHP toolkit to calculate statistics over an array of elements