(self, ir: SignalObj, nthOct: int = 1,
minFreq: float = 2e1, maxFreq: float = 2e4, *args,
plotLundeby: bool = False,
bypassLundeby: bool = False,
suppressWarnings: bool = True,
ircut: float = None, **kwargs)
| 953 | Rinaldi Petrolli, rinaldi.petrolli@eac.ufsm.br""" |
| 954 | |
| 955 | def __init__(self, ir: SignalObj, nthOct: int = 1, |
| 956 | minFreq: float = 2e1, maxFreq: float = 2e4, *args, |
| 957 | plotLundeby: bool = False, |
| 958 | bypassLundeby: bool = False, |
| 959 | suppressWarnings: bool = True, |
| 960 | ircut: float = None, **kwargs): |
| 961 | _ir = ir.IR if type(ir) == ImpulsiveResponse else ir |
| 962 | minBand = freq_to_band(minFreq, nthOct, 1000, 10) |
| 963 | maxBand = freq_to_band(maxFreq, nthOct, 1000, 10) |
| 964 | nbands = maxBand - minBand + 1 |
| 965 | super().__init__('mixed', nthOct, minFreq, maxFreq, nbands*[0], *args, **kwargs) |
| 966 | self.ir = crop_IR(_ir, ircut) |
| 967 | self._params, self.listEDC, self.fhSignal = self.estimate_energy_parameters(self.ir, self.bands, plotLundeby, |
| 968 | bypassLundeby, suppressWarnings, |
| 969 | nthOct=nthOct, minFreq=minFreq, |
| 970 | maxFreq=maxFreq) |
| 971 | return |
| 972 | |
| 973 | @staticmethod |
| 974 | def estimate_energy_parameters(ir: SignalObj, bands: np.ndarray, |
nothing calls this directly
no test coverage detected