summaryrefslogblamecommitdiffstats
path: root/DataStructure/ScoreElement.java
blob: c5ed85aa18c97e4c46760a00d12bcb2d08a2ef80 (plain) (tree)




















                                                                               
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++;
		}

	}
}