Signal Transformations

The Trace class supports operators and provides methods to transform the samples of a Trace into a new Trace instance labeled with the performed signal transformation.

Value Conversions

Method

Name

Label

bool()

Boolean

'bool'

int()

Integer

'int'

float()

Float

'float'

bin()

Binary

'bin'

oct()

Octal

'oct'

hex()

Hexadecimal

'hex'

Comparison Operations

Arithmetic Operations

Method

Name

Label

add()

Addition

'add' or 'radd'

sub()

Subtraction

'sub' or 'rsub'

mul()

Multiplication

'mul' or 'rmul'

div()

Division

'div' or 'rdiv'

floordiv()

Floor Division

'floordiv' or 'rfloordiv'

mod()

Modulo

'mod' or 'rmod'

pow()

Exponentiation

'pow' or 'rpow'

Bitwise Operations

Method

Name

Label

bitwise_and()

Bitwise AND

'and' or 'rand'

bitwise_or()

Bitwise OR

'or' or 'ror'

bitwise_xor()

Bitwise XOR

'xor' or 'rxor'

invert()

Bitwise NOT

'not'

left_shift()

Bitwise Left Shift

'shl' or 'rshl'

right_shift()

Bitwise Right Shift

'shr' or 'rshr'

bits()

Bitwise Unpacking

'bits'

Assignment Operations

Operator

Name

Label

+=

Addition

'iadd'

-=

Subtraction

'isub'

*=

Multiplication

'imul'

/=

Division

idiv

//=

Floor Division

'ifloordiv'

%=

Modulo

'imod'

**=

Exponentiation

'ipow'

&=

Bitwise AND

'iand'

|=

Bitwise OR

'ior'

^=

Bitwise XOR

'ixor'

<<=

Bitwise Left Shift

'ishl'

>>=

Bitwise Right Shift

'ishr'

Mathematical Functions

Method

Name

Label

neg()

Negation

'neg'

abs()

Absolute

'abs'

round()

Rounding

'round'

trunc()

Truncation

'trunc'

floor()

Floor Rounding

'floor'

ceil()

Ceil Rounding

'ceil'

sign()

Signum

'sign'

zero()

Zeros

'zero'

positive()

Positives

'positive'

negative()

Negatives

'negative'

min()

Min

'min'

max()

Max

'max'

average()

Average

'avg'

Trigonometric Functions

Differentiating Functions

Method

Name

Label

delta()

Delta

'delta'

enter_positive()

Enter Positives

'enter_positive'

left_positive()

Left Positives

'left_positive'

enter_negative()

Enter Negatives

'enter_negative'

left_negative()

Left Negatives

'left_negative'

Integrating Functions

Method

Name

Label

accumulate()

Accumulate

'accumulate'

sums_positive()

Sums Positive

'sums_positive'

sums_negative()

Sums Negative

'sums_negative'

Statistics

Method

Name

Label

sum()

Sum

count()

Count

sort()

Sort

'sort'

winsorize()

Winsorize

'winsorize'

mean()

Mean \(\overline{x}\)

weighted_mean()

Weighted Mean \(\overline{x}_{w}\)

winsor_mean()

Winsor Mean \(\overline{x}_{w\alpha}\)

median()

Median \(\overline{x}_{med}\)

mode()

Mode \(\overline{x}_{mod}\)

min()

Minimum \(x_{min}\)

max()

Maximum \(x_{max}\)

range()

Range \(x_{max} - x_{min}\)

midrange()

Mid-Range \(\frac{x_{max} + x_{min}}{2}\)

aad()

Average Absolute Deviation (AAD) \(D_{mean} = m_1\)

mad()

Median Absolute Deviation (MAD) \(D_{med}\)

variance()

Variance \(\sigma^2 = m_2\)

std()

Standard Deviation \(\sigma\)

coefficient()

Coefficient of Variation \(c_v\)

skew()

Skew \(m_3\)

kurtosis()

Kurtosis \(m_4\)

zscore()

Z-Score \(z\)

'zscore'

quantiles()

Quantiles \(q_n\)

X-Axis Transformations

Method

Name

Label

move()

Move

'move'

slice()

Slice

'slice'