Can somebody point me to some reading on some algorithm that given a set n, will place it’s elements in a bigger set m, evenly spaced (as much as possible). I plan to interpolate for the remaining values.
so I have a set of 3 elements which contains
1 ,5 ,6
and I want to distribute it in a dataframe of 10 slots as evely as possible with the 1st and last elements being 1st and last accordingly in the new set:
1 [] [] [] 5 [] [] [] [] 6
Thanks in advance.
PS. I am trying to achieve this with R
I think you should use the term “vector” which, in R anyway, has the notion of positions and length which are needed for this problem. (Mathematical sets are unordered, so have no positional interpretation and R does have set operators and functions.)