|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectNPTLab.CompareTraces
public class CompareTraces
Class that computes the similarty between two given traces of two different users.
Field Summary | |
---|---|
static double |
similarity
maps of wights and correspondign eigen vectors second node |
Constructor Summary | |
---|---|
CompareTraces()
|
Method Summary | |
---|---|
static boolean |
compareTwoTracesMessage(Trace userTrace1,
Trace userTrace2,
int SimulationDays,
double MessageOwnerSimilarity,
core.Message m,
DTNHost h)
Computes the similarty between two given traces. |
static void |
compareTwoTracesNodes(Trace userTrace1,
Trace userTrace2,
int SimulationDays,
DTNHost h1,
DTNHost h2)
|
static double |
getSimilarity(core.Message m,
DTNHost h)
Returns the last computed similarity |
static java.util.Map<java.lang.String,java.lang.Double> |
getSimilarityMapNodes()
Returns the map of all nodes similarities |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static double similarity
Constructor Detail |
---|
public CompareTraces()
Method Detail |
---|
public static boolean compareTwoTracesMessage(Trace userTrace1, Trace userTrace2, int SimulationDays, double MessageOwnerSimilarity, core.Message m, DTNHost h)
userTrace1
- Trace of Node1userTrace2
- Trace of the Node2SimulationDays
- duration of the period in wich the Trace were populatedMessageOwnerSimilarity
- similarity between the owner of the message trace and the trace of the target nodem
- Message wich trace is compared.
public static void compareTwoTracesNodes(Trace userTrace1, Trace userTrace2, int SimulationDays, DTNHost h1, DTNHost h2)
public static double getSimilarity(core.Message m, DTNHost h)
m
- Message which similarity is to be returnedh
- the DTN wich the similarty is refferring to
public static java.util.Map<java.lang.String,java.lang.Double> getSimilarityMapNodes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |