Version

TryAverageIf(Vector,ComparisonType,Double,Double,Exception) Method

Returns the average value of the elements of the Vectorx which satisfy the condition specified by the ComparisonType as the result.
Syntax
'Declaration
 
Public Overloads Shared Function TryAverageIf( _
   ByVal x As Vector, _
   ByVal op As ComparisonType, _
   ByVal c As Double, _
   ByRef result As Double, _
   ByRef exception As Exception _
) As Boolean
public static bool TryAverageIf( 
   Vector x,
   ComparisonType op,
   double c,
   out double result,
   out Exception exception
)

Parameters

x
A Vector.
op
A ComparisonType.
c
A double.
result
The conditional average of x.
exception
The exception, if one should be thrown; Null 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 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