Version

Bin(Vector,Vector) Method

Returns a new Vector y, where y[i] = n if x[i] is in the nth bin.
Syntax
'Declaration
 
Public Overloads Shared Function Bin( _
   ByVal x As Vector, _
   ByVal edges As Vector _
) As Vector
public static Vector Bin( 
   Vector x,
   Vector edges
)

Parameters

x
A Vector.
edges
edges[n] and edges[n+1] are the edges of the nth bin.

Return Value

A Vector of bin numbers.
Exceptions
ExceptionDescription
System.ArgumentExceptionOccurs when there are less than two bin edges.
System.ArgumentException Occurs when the bin edges are not in increasing order.
Remarks
If x[i] is not in any bin, y[i] = Constant.NaN.
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