I want to calculate the ratio of athe specific distance from the two coordinates in a line.
-
1.I used Combinations (Spreads) and - (Value)calculate the distance between the vector.
(Thanks to @tonfilm)) let me know how to use ((node:Combinations (Spreads).) -
2.Computing a ratio of two distances ,and I want to use a serial combinatorics for the calculation.It differs from Combinations (Spreads) is its sequence as shown below,
Combinations in VVVV:
0-5, 1-5, 2-5, 3-5, 4-5
0-4, 1-4, 2-4, 3-5
0-3, 1-3, 2-3
0-2, 1-2,
0-1My Combinations:
0-5, 1-5, 2-5, 3-5, 4-5
0-4, 1-4, 2-4, 3-4
0-3, 1-3, 2-3
0-2, 1-2,
0-16-10, 7-10, 8-10, 9-10
6-9 , 7-9, 8-9
6-8 , 7-8,
6-7
I’ve tryed as below, but the problem is , In my case ,the number of values is variable. When I added the number of values , I have to add more nodes by hand, and It will take my time to calculate the difference between the sequences of their. Does anyone know how I could make it a little more automated ? For example,how can automatically get the corresponding results only when I change the number ?
Its rules are as follows:
hope someone can have a solution to this problem immediately,thankyou
myCombinationsPath.v4p (141.4 kB)