brainspy.utils.transforms#
File that contains a set of methods to perform linear transformation from a given range to the range of the activation electrodes.
Functions
|
To check wheather the arguments provided to the functions - get_offset and get_scale are valid by raising an Assertion Error if x_max < x_min or y_max < y_min |
|
Get the scale and offset of a line defined by two points. |
|
Get the offset/y-intercept of a line defined by two points. |
|
Get the scale/slope of a line defined by two points. |
|
Define a line by two points. |