summaryrefslogtreecommitdiffstats
path: root/DataStructure/ScoreElement.java
diff options
context:
space:
mode:
authorRichard Zahoransky2011-11-07 16:29:56 +0100
committerRichard Zahoransky2011-11-07 16:29:56 +0100
commit08d5f7b0a0b24c042aa5976f66bf3a1b5b754478 (patch)
treeba5388774100c1b218cb264927c3bb3669fd7e06 /DataStructure/ScoreElement.java
parentinit (diff)
downloadlocalization-08d5f7b0a0b24c042aa5976f66bf3a1b5b754478.tar.gz
localization-08d5f7b0a0b24c042aa5976f66bf3a1b5b754478.tar.xz
localization-08d5f7b0a0b24c042aa5976f66bf3a1b5b754478.zip
Localization Code. How-To will follow...
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++;
+ }
+
+ }
+}