Skip to content

Latest commit

 

History

History
70 lines (33 loc) · 847 Bytes

File metadata and controls

70 lines (33 loc) · 847 Bytes

Home > @josh-brown/vector > correlation

correlation() function

Calculates the correlation coefficient r of two vectors

Signature:

export declare function correlation<S>(first: Vector<S>, second: Vector<S>): S;

Parameters

Parameter

Type

Description

first

Vector<S>

The first vector

second

Vector<S>

The second vector

Returns:

S