I've this very silly doubt in getting equally spaced numbers with fixed interval from a set of numbers.
Let's say I have a set of points, if I want maximum N points from this set equally distanced,
for ex:
- Total number of points in the set: 120
- Maximum number of points I want from it : 10
Then I can get like this,
1 * (120/ 10), 2 * (120 / 10)...... 10 * (120 / 10) ?
So that I will get 12, 24, 36... ,120 exactly 10 points with perfect interval.
I'm using a formula like, 1 * (X/N), 2 * (X/N), .... N * (X/N)
Is this right approach? Thanks for your time!