Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

xcov (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the spectral analysis class.

Syntax

c = xcov(a)

c = xcov(a, l)

c = xcov(a, option)

c = xcov(a, l, option)

c = xcov(a, b)

c = xcov(a, b, l)

c = xcov(a, b, option)

c = xcov(a, b, l, option)

[c, d] = xcov(a)

[c, d] = xcov(a, l)

[c, d] = xcov(a, option)

[c, d] = xcov(a, l, option)

[c, d] = xcov(a, b)

[c, d] = xcov(a, b, l)

[c, d] = xcov(a, b, option)

[c, d] = xcov(a, b, l, option)

Description

Computes the cross-covariance of the inputs.

Examples

Inputs

Name Description
a Specifies a vector or matrix.
b Specifies a vector.
l Controls the length of the cross-covariance. If a is a vector of length n, c = xcov(a, l) returns a vector of length 2*l+1. LabVIEW pads l with zeros when l is greater than or equal to n.
option Specifies the normalization method to use to compute the cross-covariance between a and b. option is a string that accepts the following values.

'biased' Applies biased normalization.
'coeff' Applies normalization such that the covariance at zero lag is 1.
'none' (default) Does not apply normalization.
'unbiased' Applies unbiased normalization.

Outputs

Name Description
c Returns the cross-covariance between a and b. If a is a matrix, c = xcov(a) returns the cross-covariance of all combinations of the columns of a. c is vector or matrix.
d Returns the indexes of the cross-covariance. If you specify l, d is [-l, -l+1, ..., 0, ..., l-1, l]. d is a vector.

Examples

A = [0.1, 0.2, 0.3, 0.4]
C = xcov(A)

Related Topics

cov
xcorr


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit