resistics.time.math module¶
-
resistics.time.math.
polarityReversal
(timeData: resistics.time.data.TimeData, reversal: Dict[str, bool], inplace: bool = True) → resistics.time.data.TimeData[source]¶ Multiply the data by -1 (polarity reversal)
- Parameters
- timeDataTimeData
timeData to normalise
- reversalDict[str, bool]
Keys are channels and values are boolean flags for reversing
- inplacebool, optional
Whether to manipulate the data inplace
- Returns
- TimeData
Normalised time data
-
resistics.time.math.
polarityReversalData
(data: Dict[str, numpy.ndarray], reversal: Dict[str, bool]) → Dict[str, numpy.ndarray][source]¶ Polarity reverse data or simply multiply by -1
- Parameters
- dataDict
Dictionary with channel as keys and data as values
- reversalDict[str, bool]
Keys are channels and values are boolean flags for reversing
- Returns
- Dict
Dictionary with channel as keys and normalised data as values
-
resistics.time.math.
scale
(timeData: resistics.time.data.TimeData, scalars: Dict[str, bool], inplace: bool = True) → resistics.time.data.TimeData[source]¶ Scale the data by an arbitrary amount
- Parameters
- timeDataTimeData
timeData to normalise
- scalarsDict[str, float]
Keys are channels and values are boolean flags for reversing
- inplacebool, optional
Whether to manipulate the data inplace
- Returns
- TimeData
Normalised time data
-
resistics.time.math.
scaleData
(data: Dict[str, numpy.ndarray], scalars: Dict[str, bool]) → Dict[str, numpy.ndarray][source]¶ Polarity reverse data or simply multiply by -1
- Parameters
- dataDict
Dictionary with channel as keys and data as values
- scalarsDict[str, float]
Keys are channels and values are flaots
- Returns
- Dict
Dictionary with channel as keys and normalised data as values