|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object be.ac.ulg.montefiore.run.totem.repository.tomography.evaluation.Evaluator
public class Evaluator
Creation date: 10-avr.-2006
Constructor Summary | |
---|---|
Evaluator(TrafficMatrix[] est,
TrafficMatrix[] real,
Domain domain)
|
Method Summary | |
---|---|
TrafficMatrix |
bias(Domain domain,
TrafficMatrix[] real,
TrafficMatrix[] est)
This method compute the absolute sample bias of an estimator for each flow |
void |
computeError()
Compute and print all type of error |
LinkLoadData |
constructLinkLoadFromTM(RoutingMatrix a,
TrafficMatrix[] x,
int step)
This method construct a linkLoadData structure associated with a traffic matrix |
double[] |
constructSNMPfromTM(RoutingMatrix a,
TrafficMatrix x)
This method construct a link count array associated with a traffic matrix |
TrafficMatrix |
errStd(Domain domain,
TrafficMatrix[] real,
TrafficMatrix[] est)
This method compute the standard deviation the estimator for each flow, that represent the error in term of bias and variance |
void |
parallelVisualCompare()
|
void |
parallelVisualCompareDiffOnly()
|
void |
printEsts()
Print the estimated traffic matrices array |
void |
printODPair(java.lang.String nodeIn,
java.lang.String nodeOut)
|
void |
printReals()
Print the real traffic matrices array |
void |
printRealsAverage()
|
void |
printResult(double[] res,
java.lang.String title)
Print a double array |
void |
printResult(TrafficMatrix tm,
java.lang.String title)
Print a trafficMatrix structure |
void |
printTrafficMatrices(TrafficMatrix[] tm,
java.lang.String type)
Print an array of traffic matrices |
void |
printTrafficMatrix(TrafficMatrix tm,
java.lang.String type)
Print a trafficMatrix |
TrafficMatrix |
relL2SP(Domain domain,
TrafficMatrix[] real,
TrafficMatrix[] est)
This method compute the relative L2 Norm, representing the spacial error, it's an error metric per OD flow that summarize its errors over its lifetime Traffic matrices have the same size |
double[] |
relL2T(Domain domain,
TrafficMatrix[] real,
TrafficMatrix[] est)
This method compute the relative L2 Norm, representing the temporal error i.e. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Evaluator(TrafficMatrix[] est, TrafficMatrix[] real, Domain domain)
est
- the array of estimated traffic matricesreal
- the array of real traffic matricesdomain
- the domain associated to traffi matrices to evaluateMethod Detail |
---|
public void printRealsAverage() throws InvalidDomainException, NodeNotFoundException
InvalidDomainException
NodeNotFoundException
public void parallelVisualCompareDiffOnly() throws NodeNotFoundException
NodeNotFoundException
public void parallelVisualCompare() throws NodeNotFoundException
NodeNotFoundException
public void printReals() throws NodeNotFoundException
NodeNotFoundException
public void printEsts() throws NodeNotFoundException
NodeNotFoundException
public void printTrafficMatrices(TrafficMatrix[] tm, java.lang.String type) throws NodeNotFoundException
tm
- the array to printtype
- the title we want to print with the matrix
NodeNotFoundException
public void printTrafficMatrix(TrafficMatrix tm, java.lang.String type) throws NodeNotFoundException
tm
- The structure to printtype
- the title we want to print with the matrix
NodeNotFoundException
public void printResult(TrafficMatrix tm, java.lang.String title) throws NodeNotFoundException
tm
- The structure to printtype
- the title we want to print with the matrix
NodeNotFoundException
public void printResult(double[] res, java.lang.String title)
res
- the array to printtype
- the title we want to print with the matrixpublic void computeError() throws NodeNotFoundException, InvalidDomainException
NodeNotFoundException
InvalidDomainException
public TrafficMatrix relL2SP(Domain domain, TrafficMatrix[] real, TrafficMatrix[] est) throws NodeNotFoundException, InvalidDomainException
domain
- The domain we are studyingreal
- An array containing real traffic matricesest
- An array of estimated traffic matrices
NodeNotFoundException
InvalidDomainException
public double[] relL2T(Domain domain, TrafficMatrix[] real, TrafficMatrix[] est) throws NodeNotFoundException, InvalidDomainException
domain
- The domain we are studyingreal
- An array containing real traffic matricesest
- An array of estimated traffic matrices
NodeNotFoundException
InvalidDomainException
public TrafficMatrix bias(Domain domain, TrafficMatrix[] real, TrafficMatrix[] est) throws NodeNotFoundException, InvalidDomainException
domain
- The domain we are studyingreal
- An array containing real traffic matricesest
- An array of estimated traffic matrices
NodeNotFoundException
InvalidDomainException
public TrafficMatrix errStd(Domain domain, TrafficMatrix[] real, TrafficMatrix[] est) throws NodeNotFoundException, InvalidDomainException
domain
- The domain we are studyingreal
- An array containing real traffic matricesest
- An array of estimated traffic matrices
NodeNotFoundException
InvalidDomainException
public double[] constructSNMPfromTM(RoutingMatrix a, TrafficMatrix x) throws NodeNotFoundException, LinkNotFoundException
a
- the routing matrixx
- the traffic matrix
NodeNotFoundException
LinkNotFoundException
public LinkLoadData constructLinkLoadFromTM(RoutingMatrix a, TrafficMatrix[] x, int step) throws NodeNotFoundException, NotYetImplementedException, LinkNotFoundException
a
- the routing matrixx
- the traffic matrixstep
- number of millisecond of an interval between two matrices in
the array
NodeNotFoundException
NotYetImplementedException
LinkNotFoundException
public void printODPair(java.lang.String nodeIn, java.lang.String nodeOut) throws NodeNotFoundException
NodeNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |