Answer the question
In order to leave comments, you need to log in
How to get the formula for uniformly distributed vectors in multidimensional space?
Note: don’t be particularly afraid of the title, I just don’t know (but I want to know) how to call it in a generally accepted way.
There is a school task:
How many spokes are in the wheel if the angle between adjacent spokes is 20 degrees?
I have an inverse problem and a more general
one. I need to find how these spokes (vectors) can be evenly spaced if their number n is known and the space dimension r is known. That is, find such vectors.
In two-dimensional space (r=2) it is easy to solve the problem:
the angle between each pair of neighboring vectors must be equal to 360°/n
Let's say:
r = 2 (two-dimensional space, plane)
n = 2 (two vectors are needed)
Then we get any output two oppositely directed two-dimensional vectors.
For example (0,1) and (0,-1) [6:00 am on the clock face]
Or (1,0) and (-1,0) [~9:15]
If n = 3, then these are three vectors, which, figuratively, cut the pizza into 3 equal parts (with angles of 120 degrees between each adjacent pair of vectors);
if n = 4, then into 4 equal parts, and so on.
In three-dimensional space, it's about the same, although it's more difficult to understand which of the vectors coming out of one point are neighboring
A in multi-dimensional space (r> 3), I'm just stuck.
The problem is that I don't know how to succinctly formulate the question, so it's not even clear which side to approach.
Note: it is not necessary that the vectors be of the same length or intersect one point
(in the examples above they are used just for clarity).
But you need to get a set of vectors with specific coordinates.
Ideally, if there is some solution in python
(eventually, I will implement this algorithm on it anyway)
Obviously, there will be infinitely many solutions even for unit vectors.
We need an algorithm how to get at least 1 set of such "evenly distributed" vectors
That is, I'll try to formulate it again, but a little differently:
You need to get a set of vectors with uniformly different directions.
If they are represented as numbers, then this is a cyclic sequence with the same step
Or evenly distributed points on a circle, etc.
How can this be done / in which direction to dig?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question