Version

TryAverageIf(ComplexVector,BooleanVector,Complex,Exception) Method

Returns the average value of the ComplexVectorx where the corresponding BooleanVector is True as the result.
Syntax
'Declaration
 
Public Overloads Shared Function TryAverageIf( _
   ByVal x As ComplexVector, _
   ByVal comparison As BooleanVector, _
   ByRef result As Complex, _
   ByRef exception As Exception _
) As Boolean
public static bool TryAverageIf( 
   ComplexVector x,
   BooleanVector comparison,
   out Complex result,
   out Exception exception
)

Parameters

x
A ComplexVector.
comparison
A BooleanVector with the same length and orientation as x.
result
The average value of the elements of x where comparison is true.
exception
The excepton if one should be thrown; false otherwise.

Return Value

True if the computation is successful; false otherwise.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also