Home > @josh-brown/vector > correlation
Calculates the correlation coefficient r of two vectors
Signature:
export declare function correlation<S>(first: Vector<S>, second: Vector<S>): S;|
Parameter |
Type |
Description |
|---|---|---|
|
first |
Vector<S> |
The first vector |
|
second |
Vector<S> |
The second vector |
Returns:
S