# Functions (baseband_tasks.functions)¶

functions contains general tasks to apply a user-defined function to a stream, as well as pre-defined implementations for common functions such as squaring to transform voltages to into intensities.

## Reference/API¶

 Square(ih[, polarization]) Converts samples to intensities by squaring. Power(ih[, polarization]) Calculate powers and cross terms for two polarizations.