def vector_analysis(vector, coordinates, elements_vdw, increment=<NUM_LIT:1.0>):
<EOL>chunks = int(np.linalg.norm(vector) // increment)<EOL>chunk = vector / chunks<EOL>vector_pathway = np.array([chunk * i for i in range(chunks + <NUM_LIT:1>)])<EOL>analysed_vector = np.array([<EOL>np.amin(<EOL>euclidean_distances(coordinates, i.reshape(<NUM_LIT:1>, -<NUM_LIT:1>)) - elements_vdw)<EOL>for i in vector_pathway<EOL>])<EOL>if all(i > <NUM_LIT:0> for i in analysed_vector):<EOL><INDENT>pos = np.argmin(analysed_vector)<EOL>dist = np.linalg.norm(chunk * pos)<EOL>return np.array(<EOL>[dist, analysed_vector[pos] * <NUM_LIT:2>, *chunk * pos, *vector])<EOL><DEDENT>
Analyse a sampling vector's path for window analysis purpose.