Weights in general are real numbers, not integer, though often they
are integers.


From: R.E. Boss <[email protected]>
Date: Fri, Feb 6, 2009 at 10:54 AM
Subject: Re: [Jprogramming] Examples of dyadic forks
To: Programming forum <[email protected]>


What about

wmean1=: # %&(+/) [
mean1=:  # %&(+/)~ [

     1 1 1 (me...@],wmean1) 3 5 8
5.3333333 5.3333333
     1 1 2 (me...@],wmean1) 3 5 8
5.3333333 6


R.E. Boss
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to