Version

TryAverageIf(Vector,BooleanVector,Double,Exception) Method

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

Parameters

x
A Vector.
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