|
ClassesSummarize Method
|
Namespace:
Accord.Statistics
Assembly:
Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax public static int[][] Summarize(
this int[][] data,
int groupIndex,
int yesNoIndex
)
<ExtensionAttribute>
Public Shared Function Summarize (
data As Integer()(),
groupIndex As Integer,
yesNoIndex As Integer
) As Integer()()
Request Example
View SourceParameters
- data
- Type: SystemInt32
A data matrix containing at least a column of binary data. - groupIndex
- Type: SystemInt32
Index of the column which contains the group label name. - yesNoIndex
- Type: SystemInt32
Index of the column which contains the binary [0,1] data.
Return Value
Type:
Int32
A matrix containing the group label in the first column, the number of occurrences of the first class
in the second column and the number of occurrences of the second class in the third column.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also