resistics.decimate.evalfreqs module

resistics.decimate.evalfreqs.getEvaluationFreq(fs: float, minFreq: float) → numpy.ndarray[source]

Calculate evaluation frequencies with mimum allowable frequency

Highest frequency is Nyquist/2. Lowest allowable frequency is provided by user f_i = f_max / pow(2,(i-1)/2)

Parameters
fsfloat

Sampling frequency

minFreqfloat

Minimum allowable frequency

Returns
outnp.ndarray

Array of evaluation frequencies

resistics.decimate.evalfreqs.getEvaluationFreqSize(fs: float, numFreq: int) → numpy.ndarray[source]

Calculate evaluation frequencies with maximum size

Highest frequency is Nyquist/2 and number of evaluation frequencies is set by user f_i = f_max / pow(2,(i-1)/2)

Parameters
fsfloat

Sampling frequency

numFreqint

Number of evaluation frequencies

Returns
outnp.ndarray

Array of evaluation frequencies