[Jprogramming] subtotals

Raul Miller rauldmiller at gmail.com
Sat Apr 28 02:01:45 HKT 2007


On 4/27/07, kamakura <kamakura at indsys.chuo-u.ac.jp> wrote:
> I am very sorry to annoy you with my problem.

Please do not be sorry.  Without interesting questions, we would
have far less to discuss here.

That said, instead of arraysubtotal, I would instead use:

subtotalarray=: (Idotr {."1) +//. }."1@]

   0 0.5 (arraysubtotal -: subtotalarray)  array=:|:(/:~(?.10$0)),(?.5 10$10)
1
   0 0.2 0.6 0.8 (arraysubtotal -: subtotalarray)  array
1

I hope this helps, but I fear that my terse presentation here may
not address some concepts which are important for you.

Anyways, please feel welcome to ask more questions.

Thanks,

-- 
Raul


More information about the Programming mailing list