summaryrefslogtreecommitdiffstats
path: root/DataStructure/ScoreElement.java
diff options
context:
space:
mode:
Diffstat (limited to 'DataStructure/ScoreElement.java')
-rw-r--r--DataStructure/ScoreElement.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/DataStructure/ScoreElement.java b/DataStructure/ScoreElement.java
new file mode 100644
index 0000000..c5ed85a
--- /dev/null
+++ b/DataStructure/ScoreElement.java
@@ -0,0 +1,21 @@
+package DataStructure;
+
+class ScoreElement {
+ public int occurrence; // how often was this coordinate chosen based on
+ // Signalstrength
+ public int ratio_hit; // how often was this coordinate chosen based on
+ // SignalRatio
+ public GPScoordinate gps;
+ private double score;
+
+ public ScoreElement(GPScoordinate reference) {
+ gps = reference;
+ }
+
+ public void add(GPScoordinate gps) {
+ if (this.gps.equals(gps)) {
+ score++;
+ }
+
+ }
+}