Does this sound like a valid restatement of the problem?

Given two lists of numbers, A and B, construct a list
analogous to L=: A i.B, minimizing +/&.*:B-L{A

?

If so, I'd be tempted to try:
  i=: /:A
  a=:i{A
  ia=:a I.B

  L=: i{~ i1+>/|B-"1(ia,:(#i)<.1+ia){a

FYI,

--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to