Previous topic

models

Next topic

blitz.communications

This Page

transforms

class blitz.data.transforms.MovingAverageDataTransform(periods)[source]

Calculates an n-period moving average transform over the y-axis data.

Parameters:periods – the number of periods to perform the moving average over
apply(container)[source]

Applies a moving average filters using numpy

Parameters:container – the data container to operate over
class blitz.data.transforms.MultiplierDataTransform(multiplier=1)[source]

Applies a simple multiplier which takes a value and multiplies each y-value by this amount

Parameters:multiplier – the value to multiply y-values by (default 1)
apply(container)[source]

Multiplies each y value in the container by the multiplier set in __init__

Parameters:container – the data container to operate over
class blitz.data.transforms.TranslateDataTransform(shift_amount=0, shift_axis='y')[source]

Translates data on the y-axis based on the amount provided in shift_amount

Parameters:
  • shift_amount – the amount to shift data by on the y-axis
  • shift_axis – the axis to translate on (defaults to y, can also supply x)

Warning

If shift_axis is neither x nor y, then the translation will apply to the ‘y’ axis

apply(container)[source]

Applies an axis translation to the data.

Parameters:container – the data container to operate over