calc mean params