This calculates the mean value of a channel. It assumes the channel is continuous. It takes only one parameter, the channel. If the channel is not provided, it uses the first channel defined in the domain description file.