Returns the spectral frequency moment of order n.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(domain_type), | intent(in) | :: | self | Spectrum instance |
||
integer(kind=ik), | intent(in) | :: | n | Order |
pure function wavenumberMoment(self,n) result(moment)
!! Returns the spectral frequency moment of order n.
class(domain_type),intent(in) :: self !! Spectrum instance
integer(kind=ik),intent(in) :: n !! Order
real(kind=rk),dimension(:,:),allocatable :: moment
moment = self % spectrum % wavenumberMoment(n)
endfunction wavenumberMoment