-
Notifications
You must be signed in to change notification settings - Fork 0
/
Point.java
41 lines (37 loc) · 923 Bytes
/
Point.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*===============================================================================
* Program: K-Means implementation CS 4315 Assignment 2 Point.java
* Programmer: David Torrente (A00652464)
* Date Of Last Edit: 3/01/2016
* Description: This is the class for k-means data points. Typical getters
* and setters.
===============================================================================*/
public class Point
{
double xCoordinate;
double yCoordinate;
int cluster;
public void setX(double x)
{
xCoordinate = x;
}
public void setY(double y)
{
yCoordinate = y;
}
public void setCluster(int c)
{
cluster = c;
}
public double getX()
{
return xCoordinate;
}
public double getY()
{
return yCoordinate;
}
public int getCluster()
{
return cluster;
}
}