|
Tools. Center Method (Double[] [] ,Double[] , Boolean)
|
Centers column data, subtracting the empirical mean from each variable.
Namespace:
Accord.Statistics
Assembly:
Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntaxpublic static double[][] Center(
this double[][] matrix,
double[] means,
bool inPlace = false
)
<ExtensionAttribute>
Public Shared Function Center (
matrix As Double()(),
means As Double(),
Optional inPlace As Boolean = false
) As Double()()
Request Example
View SourceParameters
- matrix
- Type:System.Double[][]
A matrix where each column represent a variable and each row represent a observation. - means
- Type:System.Double[]
The mean value of the given values, if already known. - inPlace (Optional)
- Type: System.Boolean
True to perform the operation in place, altering the original input matrix.
Return Value
Type:
Double[][]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