mikeph
- 1,229
- 18
So say I have n real number to chose in the range [0,1], and the first and last are 0 and 1. So in essence my problem is to determine the n-1 spacings between adjacent numbers, so call these values S(1), S(2), ... S(n-1).
The simplest would be an equal spacing: S(1) = S(2) = ... = S(n-1). For example, n=11, then all the spacings are 0.1.
Is there a good formulation for generalising this to non-uniform spacings?
For example, I want to consider:
1. Linear increase: S(i+1) = 2*S(i) (which to me looks like n-2 equations for n-1 unknowns- how to determine s(1)?)
Or also any other interesting ways of distributing the numbers, for example sinusoidally: taking the equal spacing example above, then taking the arcsin of each point from 0 to 1 to get a squashed distribution in [0,pi/2] then dividing by pi/2 to return to the [0,1] range.
Is there any easy way to express this? I am just writing ramblings on paper and for all I know this has a name or something I can research.
Thanks,
Mike
The simplest would be an equal spacing: S(1) = S(2) = ... = S(n-1). For example, n=11, then all the spacings are 0.1.
Is there a good formulation for generalising this to non-uniform spacings?
For example, I want to consider:
1. Linear increase: S(i+1) = 2*S(i) (which to me looks like n-2 equations for n-1 unknowns- how to determine s(1)?)
Or also any other interesting ways of distributing the numbers, for example sinusoidally: taking the equal spacing example above, then taking the arcsin of each point from 0 to 1 to get a squashed distribution in [0,pi/2] then dividing by pi/2 to return to the [0,1] range.
Is there any easy way to express this? I am just writing ramblings on paper and for all I know this has a name or something I can research.
Thanks,
Mike