public override double UnapplyUserLevel(double epsilon) { double res = target.UnapplyUserLevel(epsilon); table[key] -= res; maximum[0] = table.Values.Max(); return(res); }
public void UnregisterAlgorithm(StreamingAlgorithm <T> alg) { lock (this) { if (alg is StreamingUserAlgorithm <T> ) { agent.UnapplyUserLevel(alg.Epsilon); } // otherwise, we will unapply after we receive the data if (processing) { toRemove.Add(alg); } else { activeAlgorithms.Remove(alg); } } }