In that case, the weighted average from another thread works well.

   wa =: * %&(+/) [
   mask wa"1  i. 4 5
2 7 0 16.5


On Wed, Dec 2, 2009 at 12:06 PM, Roger Hui <[email protected]> wrote:
> And what is the problem?
>
> I consider 0 to be the correct answer for the average
> if the mask is all 0.
>
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to