Home > @josh-brown/vector > center
Returns the vector x, shifted so that its mean is at 0
Signature:
export declare function center<S>(x: Vector<S>): Vector<S>;|
Parameter |
Type |
Description |
|---|---|---|
|
x |
Vector<S> |
The vector to center |
Returns:
Vector<S>