Module correlation_indicators

Source
Expand description

§Correlation Indicators

The correlation_indicators module provides functions to measure the co-movement and statistical relationship between two different price series or assets.

§When to Use

Use correlation indicators when you want to:

  • Quantify how closely two assets move together
  • Assess diversification or hedging effectiveness
  • Explore relationships between assets

§Structure

  • single: Functions that return a single value for a slice of prices.
  • bulk: Functions that compute values of a slice of prices over a period and return a vector.

§Included Indicators

§Bulk

§Single

§API Details

  • All functions require two slices of f64 prices (for the two assets).
  • See each function for further details, panics, and usage examples.

Modules§

bulk
bulk: Functions that compute values of a slice of prices over a period and return a vector.
single
single: Functions that return a single value for a slice of prices