torchsig.utils.coordinate_system.Coordinate

class torchsig.utils.coordinate_system.Coordinate(x: float, y: float)[source]

Bases: object

Represents a point in 2D space with x and y coordinates.

x

X-coordinate of the point.

Type:

float

y

Y-coordinate of the point.

Type:

float

Methods

__init__(x: float, y: float)[source]

Initialize a Coordinate.

Parameters:
  • x (float) – X-coordinate.

  • y (float) – Y-coordinate.

__str__() str[source]

Return a human-readable string representation of the coordinate.

Returns:

Formatted as ‘x = {x}, y = {y}’.

Return type:

str