[R] Latin Hypercube with condition sum = 1
Ben Bolker
bolker at ufl.edu
Sun Nov 23 18:43:23 CET 2008
Rainer M Krug <r.m.krug <at> gmail.com> writes:
>
> Hi
>
> I want to du a sensitivity analysis using Latin Hypercubes. But my
> parameters have to fulfill two conditions:
>
> 1) ranging from 0 to 1
> 2) have to sum up to 1
>
Perhaps I'm missing something, but it seems that there's
only one vector that satisfies these two conditions simultaneously,
which is x={0,1} ... ??? (Actually, technically speaking
you could have as many zeros as you wanted -- x = {0,0,0,1}
would also work -- but I don't think that's going to help much.)
If min(x)=0 and max(x)=1, then x must contain 0 and 1. If x
contains any other non-zero values, and no negative
ones, then sum(x)>1 ...
You seem to have a problem either in your definitions,
or in your communication of those definitions to us ...
cheers
Ben Bolker
More information about the R-help
mailing list