public class LifeSpanEstimate
extends java.lang.Object
Constructor and Description |
---|
LifeSpanEstimate() |
LifeSpanEstimate(RouterOptions o) |
Modifier and Type | Method and Description |
---|---|
void |
addWarmUpNode(long time)
Add warm up (not real) node
|
void |
APDeath(long time,
int gid)
A node dies -- register this
|
void |
fitTail()
Fit the lognormal tail
|
long |
getKMLifeEst(int life)
Get an estimate of remaining lifespan using KM estimator plus tail
|
double |
getKMProb(int t)
returns the Kaplan-Meir estimate for time t
|
java.util.List<java.lang.Double> |
getKMProbList()
accessor function for KMProb_
|
long |
getKMTailLifeEst(int life)
Get an estimate of remaining lifespan using KM estimator plus tail
|
double |
getKMTailProb(int t) |
java.util.List<java.lang.Integer> |
getKMTimeList()
accessor function for KMTime_
|
int |
getNodeLife(int id,
long time) |
double |
getTailProb(int t)
Return the lognormal probability for a fitted tail
|
double |
meanAPLife()
Return the mean life of an AP -- this only includes APs which have
died
|
double |
meanAPLifeSoFar(long time)
Return the mean life of an AP -- includes all
|
double |
meanNodeLife()
Return the mean life of a node -- this only includes
nodes which have died
|
void |
newAP(long time,
int gid)
A node is born at a given time -- register this
|
void |
newNode(long time,
int gid)
A node is born at a given time -- register this
|
void |
nodeDeath(long time,
int gid)
A node dies -- register this
|
java.util.ArrayList<Pair<java.lang.Integer,java.lang.Double>> |
plotKMGraph(long time)
Plot (return co-ords of a graph of the Kaplan--Meier Estimator
|
java.util.ArrayList<Pair<java.lang.Integer,java.lang.Double>> |
plotKMGraphTail(long time)
Plot (return co-ords of a graph of the Kaplan--Meier Estimator with tail
|
void |
removeWarmUpNode(long startTime,
long endTime)
Remove warm up (not real) node
|
void |
sortDeaths() |
void |
updateKMEstimate(long time)
Update tables for estimators using Kaplan--Meier procedure
|
public LifeSpanEstimate(RouterOptions o)
public LifeSpanEstimate()
public java.util.ArrayList<Pair<java.lang.Integer,java.lang.Double>> plotKMGraph(long time)
public java.util.ArrayList<Pair<java.lang.Integer,java.lang.Double>> plotKMGraphTail(long time)
public void fitTail()
public double getKMTailProb(int t)
public double getKMProb(int t)
public double getTailProb(int t)
public void newNode(long time, int gid)
public void nodeDeath(long time, int gid)
public void newAP(long time, int gid)
public void addWarmUpNode(long time)
public void removeWarmUpNode(long startTime, long endTime)
public int getNodeLife(int id, long time)
public void APDeath(long time, int gid)
public double meanNodeLife()
public double meanAPLife()
public double meanAPLifeSoFar(long time)
public long getKMTailLifeEst(int life)
public long getKMLifeEst(int life)
public void sortDeaths()
public void updateKMEstimate(long time)
public java.util.List<java.lang.Integer> getKMTimeList()
public java.util.List<java.lang.Double> getKMProbList()
User Space Routing 0.10.3