You possibly means something other than 

N = #V

?

Maybe show some valid vectors for small Q?


----- Original Message -----
From: Dan Bron <[email protected]>
To: [email protected]
Cc: 
Sent: Friday, May 8, 2015 12:47 PM
Subject: Re: [Jprogramming] Random distribution

I think you've got a model in your head where Q=N; in that case, yes, your
function should produce N#1 .  But N and Q are independent variables.

-Dan

----- Original Message ---------------

Subject: Re: [Jprogramming] Random distribution
   From: "'Pascal Jasmin' via Programming" <[email protected]>
   Date: Fri, 8 May 2015 16:27:33 +0000 (UTC)
     To: "[email protected]" <[email protected]>

For Q = 3, 

only 1 1 1 would match your criteria

for Q = 4,
2 2 would not be N=#V

1 1 1 1 again appears to be the only match I see.


----- Original Message -----
From: Dan Bron <[email protected]>
To: [email protected]
Cc: 
Sent: Friday, May 8, 2015 11:54 AM
Subject: [Jprogramming] Random distribution

I have a quantity Q and I want to divide it into a vector V of N
randomly-sized chunks, such that N=#V and Q=+/V .  

Ideas?

-Dan





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

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

Reply via email to