|
ToolsCenter Method (Double, Double, Double)
|
Centers an observation, subtracting the empirical
mean from each element in the observation vector.
Namespace:
Accord.Statistics
Assembly:
Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax public static double[] Center(
this double[] values,
double mean,
double[] result = null
)
<ExtensionAttribute>
Public Shared Function Center (
values As Double(),
mean As Double,
Optional result As Double() = Nothing
) As Double()
Request Example
View SourceParameters
- values
- Type: SystemDouble
An array of double precision floating-point numbers. - mean
- Type: SystemDouble
The mean of the values, if already known. - result (Optional)
- Type: SystemDouble
The destination array where the result of this operation should be stored.
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).
See Also