swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: suggestion for Averager


From: Marcus G. Daniels
Subject: Re: suggestion for Averager
Date: 07 Jul 1999 13:06:46 -0700
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.3.11

>>>>> "RLR" == Rick Riolo <address@hidden> writes:

RLR> (or is there a way to do this with existing tools?)

Not unless you pre-filter (and thus fix) the feed collection.
Otherwise, there isn't; the denominator is always incremented.

Two solutions occur to me:

  1) Have Averager & Entropy accept two kinds of methods.  The first
     form would be a method of N arguments that returns a double.  The
     second form would be as a method of N + 1 arguments returning a
     boolean where the extra argument is a pointer to the returned
     double.

     + fast (no extra method invocations)
     * "-(BOOL)value: (double *)val index: i" methods would be needed
       to select among variables.
   
  2) Modify MessageProbe so that the called selector could be switched.
     Averager, being a MessageProbe, could then internally temporarily
     switch to the selection probe and back within the same computation.

     + no method calling convention to know about
     - slower, a selection method must be called and then a query method

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]