frequency_bin_width Function

public pure elemental function frequency_bin_width(fs, n) result(rst)

Computes the bin width for a discrete frequency spectrum based upon the data sample rate.

The frequency bin width is computed as follows.

where m is computed via compute_transform_length.

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in) :: fs

The rate at which the signal was sampled. The units of this value will be the units of the output.

integer(kind=int32), intent(in) :: n

The signal length (length of the signal put forth to the Fourier transform).

Return Value real(kind=real64)

The frequency bin width.