Updates delivery predictions for a host. P(a,b) = P(a,b)_old + (1 - P(a,b)_old) P_INIT @param host The host we just met
(DTNHost host)
| 113 | * @param host The host we just met |
| 114 | */ |
| 115 | private void updateDeliveryPredFor(DTNHost host) { |
| 116 | double oldValue = getPredFor(host); |
| 117 | double newValue = oldValue + (1 - oldValue) * P_INIT; |
| 118 | preds.put(host, newValue); |
| 119 | } |
| 120 | |
| 121 | /** |
| 122 | * Returns the current prediction (P) value for a host or 0 if entry for |
no test coverage detected