jhpro.nnet.jknnl
Class Coords
- java.lang.Object
-
- jhpro.nnet.jknnl.Coords
-
public class Coords extends java.lang.ObjectClass used to get or set neuron coordinate in topology.
-
-
Constructor Summary
Constructors Constructor and Description Coords()Creates a new instance of Coords with default coordinates (0,0).Coords(int x, int y)Creates a new instance of Coords with specified x and y coordinate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object obj)Indicates whether some other object is "equal to" Coords class..intgetX()Return x coordinateintgetY()Return y coordinatejava.lang.StringtoString()Returns a string representation of the Coords object [ x = ,y = ]
-
-
-
Constructor Detail
-
Coords
public Coords()
Creates a new instance of Coords with default coordinates (0,0).
-
Coords
public Coords(int x, int y)Creates a new instance of Coords with specified x and y coordinate.- Parameters:
x- value of xy- value of y
-
-
Method Detail
-
getX
public int getX()
Return x coordinate- Returns:
- coordinate x
-
getY
public int getY()
Return y coordinate- Returns:
- coordinate y
-
equals
public boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" Coords class..- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- obj - the reference object with which to compare.- Returns:
- true if this object is the same as the obj argument; false otherwise.
-
toString
public java.lang.String toString()
Returns a string representation of the Coords object [ x = ,y = ]- Overrides:
toStringin classjava.lang.Object- Returns:
- Returns a string representation of the Coords object
-
-
DMelt 3.0 © DataMelt by jWork.ORG