|
ClassesExpand Method (Int32, Int32, Int32)
|
Extends a grouped data into a full observation matrix.
Namespace:
Accord.Statistics
Assembly:
Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax public static int[][] Expand(
this int[] data,
int[] positives,
int[] negatives
)
<ExtensionAttribute>
Public Shared Function Expand (
data As Integer(),
positives As Integer(),
negatives As Integer()
) As Integer()()
Request Example
View SourceParameters
- data
- Type: SystemInt32
The group labels. - positives
- Type: SystemInt32
An array containing he occurrence of the positive class
for each of the groups. - negatives
- Type: SystemInt32
An array containing he occurrence of the negative class
for each of the groups.
Return Value
Type:
Int32A full sized observation matrix.
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