compute robuste statistics from samples, i.e. mean and mad
add function to transform sample dictionaries