::hwat::math::VectorAverage - Finds the average of two vectors.
VectorAverage vector1 vector2 [weight1] [weight2]
vector1 |
Tcl list of components for the first vector. |
vector2 |
Tcl list of components for the second vector. |
weight1 |
[optional] weight for vector1 (default 0.5) |
weight2 |
[optional] weight for vector2 (default 0.5) |
A list containing the average of the two vectors if successful, “{}” otherwise.
::HWAT::MATH::VectorAverage [list 1.0 2.0 3.0] [list 4.0 5.0 6.0] .
This is a N-dimensional operation. The input lists must be of equal length and the returned list will be of the same length.