covariance() computes the covariance between two columns.
Function type signature
(<-tables: stream[A], columns: [string], ?pearsonr: bool, ?valueDst: string) => stream[B] where A: Record, B: Record
(Required) List of two columns to operate on.
Normalize results to the Pearson R coefficient. Default is
Column to store the result in. Default is
Input data. Default is piped-forward data (
Calculate the covariance between two columns
data |> covariance(columns: ["x", "y"])
View example input and ouput
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, use the following resources:
InfluxDB Cloud customers can contact InfluxData Support.