HyperWorks Tools

::hwat::math::VectorAverage

::hwat::math::VectorAverage

Previous topic Next topic No expanding text in this topic  

::hwat::math::VectorAverage

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

NAME

::hwat::math::VectorAverage - Finds the average of two vectors.

 

SYNTAX

VectorAverage vector1 vector2 [weight1] [weight2]

 

ARGUMENTS

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)

 

RETURNS

A list containing the average of the two vectors if successful, “{}” otherwise.

 

EXAMPLE

::HWAT::MATH::VectorAverage [list 1.0 2.0 3.0] [list 4.0 5.0 6.0] .

 

COMMENTS

This is a N-dimensional operation. The input lists must be of equal length and the returned list will be of the same length.

 

See also

Utils Functions

Math Functions