mean Function

public function mean(d) result(o)

Arguments

Type IntentOptional AttributesName
real(kind=wp), intent(in), dimension(:):: d

Return Value real(kind=wp)

Description

Compute the arithmetic mean of an array

Called By

proc~~mean~~CalledByGraph proc~mean mean proc~stdev stdev proc~stdev->proc~mean
Help

Source Code

	function mean(d) result(o)
		!! Compute the arithmetic mean of an array
		real(wp),dimension(:),intent(in)::d
		real(wp)::o
		
		o = sum(d)/real(size(d),wp)
	end function mean