pdf_moment_1d Function

function pdf_moment_1d(self, n, mu) result(mom)

Arguments

Type IntentOptional Attributes Name
type(pdf_kernel) :: self
integer :: n
real(kind=8), optional :: mu

Return Value real(kind=8)


Calls

proc~~pdf_moment_1d~2~~CallsGraph proc~pdf_moment_1d~2 pdf_moment_1d simps simps proc~pdf_moment_1d~2->simps

Source Code

function pdf_moment_1d(self,n,mu) result(mom)
  type(pdf_kernel) :: self
  integer          :: n
  real(8),optional :: mu
  real(8)          :: mom,mu_
  mu_ = 0d0;if(present(mu))mu_=mu
  mom = simps((self%x-mu_)**n*self%pdf,self%xmin,self%xmax)
end function pdf_moment_1d