cov#

skfda.exploratory.stats.cov(X, correction=0)[source]#

Compute the covariance.

Calculates the covariance matrix representing the covariance of the functional samples at the observation points.

Parameters:
  • X (FData) – Object containing different samples of a functional variable.

  • correction (int) – degrees of freedom adjustment. The divisor used in the calculation is N - correction, where N represents the number of elements. Default: 0.

Returns:

Covariance of all the samples in the original object, as a callable.

Return type:

Callable[[ndarray[Any, dtype[float64]], ndarray[Any, dtype[float64]]], ndarray[Any, dtype[float64]]]