mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-07 11:32:16 +00:00
Added interfaces for Grouper and Aggregator
This commit is contained in:
1 parent
f5bdd9a317
commit
431b71ee1b
2 files changed
+19
No files matched your search
@@ -0,0 +1,9 @@
|
||||
package com.sap.sailing.datamining;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
public interface Aggregator {
|
||||
|
||||
public double aggregate(Collection<GPSFixWithContext> data);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.sap.sailing.datamining;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Map;
|
||||
|
||||
public interface Grouper<K> {
|
||||
|
||||
public Map<K, Collection<GPSFixWithContext>> group(Collection<GPSFixWithContext> data);
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user