a spark for calculating mean, media z-score etc.