Пример #1
0
        public override double UnapplyUserLevel(double epsilon)
        {
            double res = target.UnapplyUserLevel(epsilon);

            table[key] -= res;
            maximum[0]  = table.Values.Max();
            return(res);
        }
Пример #2
0
        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);
                }
            }
        }