utils
- Utility functions¶
Quaternion specific operations¶
|
Splits a quaternion array into two complex arrays. |
|
Constructs a quaternion array from two complex arrays. |
|
Return the Stokes-Poincaré norm of a quaternion. |
|
Normalize Stokes parameters S1, S2, S3 by S0. |
|
Return geometric parameters from Stokes parameters. |
|
Compute Stokes parameters from geometric parameters. |
|
Euler polar form of a quaternion array. |
|
Quaternion from Euler polar form. |
Windows functions¶
Graphical tools¶
- class bispy.utils.visual[source]¶
Static methods for visualization of bivariate signals.
Methods
plot2D
(t, q[, labels])2D plot of a bivariate signal.
plot3D
(t, q)3D plot of a bivariate signal
- static plot2D(t, q, labels=['u(t)', 'v(t)'])[source]¶
2D plot of a bivariate signal.
Plots the 2D trace, and time evolution of each component.
- Parameters:
- t, qarray_type
time and signal arrays (signal array may be either complex or quaternion type)
- labels[label1, label2]
list of labels to display.
- Returns:
- fig, axfigure and axis handles