change: misc
This commit is contained in:
@@ -167,13 +167,13 @@ def all_zeros(x: np.ndarray, y: np.ndarray) -> np.ndarray:
|
|||||||
return -y[pos] / m + x[pos]
|
return -y[pos] / m + x[pos]
|
||||||
|
|
||||||
|
|
||||||
def wspace(t, t_num=0):
|
def wspace(t: float | np.ndarray, t_num=0):
|
||||||
"""
|
"""
|
||||||
frequency array such that x(t) <-> np.fft(x)(w)
|
frequency array such that x(t) <-> np.fft(x)(w)
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
----------
|
----------
|
||||||
t : float or array
|
t : float | np.ndarray
|
||||||
float : total width of the time window
|
float : total width of the time window
|
||||||
array : time array
|
array : time array
|
||||||
t_num : int-
|
t_num : int-
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ class NoiseMeasurement:
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def psd_dBc(self) -> np.ndarray:
|
def psd_dBc(self) -> np.ndarray:
|
||||||
return math.to_dB(self.psd)
|
return math.to_dB(self.psd, ref=1.0)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def plottable_linear(self) -> tuple[np.ndarray, np.ndarray]:
|
def plottable_linear(self) -> tuple[np.ndarray, np.ndarray]:
|
||||||
|
|||||||
Reference in New Issue
Block a user