|
ToolsStandardize Method (Double, Double, Boolean, Double)
|
Standardizes column data, removing the empirical standard deviation from each variable.
Namespace:
Accord.Statistics
Assembly:
Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax public static double[,] Standardize(
this double[,] matrix,
double[] standardDeviations,
bool inPlace = false,
double tol = 1E-12
)
<ExtensionAttribute>
Public Shared Function Standardize (
matrix As Double(,),
standardDeviations As Double(),
Optional inPlace As Boolean = false,
Optional tol As Double = 1E-12
) As Double(,)
Request Example
View SourceParameters
- matrix
- Type: SystemDouble
A matrix where each column represent a variable and each row represent a observation. - standardDeviations
- Type: SystemDouble
The values' standard deviation vector, if already known. - inPlace (Optional)
- Type: SystemBoolean
True to perform the operation in place, altering the original input matrix. - tol (Optional)
- Type: SystemDouble
The minimum value that will be taken as the standard deviation in case the deviation is too close to zero.
Return Value
Type:
DoubleUsage 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).
Remarks This method does not remove the empirical mean prior to execution.
See Also