亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? crosscorr.m

?? 灰色控制 灰色控制 matlab
?? M
字號:
function [XCF , Lags , bounds] = crosscorr(Series1 , Series2 , nLags , nSTDs)
%CROSSCORR Compute or plot sample cross-correlation function.
%   Compute or plot the sample cross-correlation function (XCF) between
%   univariate, stochastic time series. When called with no output arguments, 
%   CROSSCORR displays the XCF sequence with confidence bounds.
%
%   [XCF, Lags, Bounds] = crosscorr(Series1 , Series2)
%   [XCF, Lags, Bounds] = crosscorr(Series1 , Series2 , nLags , nSTDs)
%
%   Optional Inputs: nLags , nSTDs
%
% Inputs:
%   Series1 - Vector of observations of the first univariate time series for 
%     which the sample XCF is computed or plotted. The last row of Series1 
%     contains the most recent observation.
%
%   Series2 - Vector of observations of the second univariate time series for 
%     which the sample XCF is computed or plotted. The last row of Series2 
%     contains the most recent observation.
%
% Optional Inputs:
%   nLags - Positive, scalar integer indicating the number of lags of the XCF 
%     to compute. If empty or missing, the default is to compute the XCF at 
%     lags 0, +/-1, +/-2,...,+/-T, where T is the smaller of 20 or one less 
%     than the length of the shortest series.
%
%   nSTDs - Positive scalar indicating the number of standard deviations of the 
%     sample XCF estimation error to compute assuming Series1/Series2 are 
%     uncorrelated. If empty or missing, default is nSTDs = 2 (i.e., approximate
%     95% confidence interval).
%
% Outputs:
%   XCF - Sample cross correlation function between Series1 and Series2. XCF 
%     is a vector of length 2*nLags + 1 corresponding to lags 0, +/-1, +/-2,
%     ... +/-nLags. The center element of XCF contains the zeroth lag cross
%     correlation. XCF will be a row (column) vector if Series1 is a row 
%     (column) vector.
%
%   Lags - Vector of lags corresponding to XCF (-nLags to +nLags).
%
%   Bounds - Two element vector indicating the approximate upper and lower
%     confidence bounds assuming the input series are completely uncorrelated.
%
% Example:
%   Create a random sequence of 100 Gaussian deviates, and a delayed version 
%   lagged by 4 samples. Then see the XCF peak at the 4th lag:
%
%     randn('state',100)               % Start from a known state.
%     x           = randn(100,1);      % 100 Gaussian deviates ~ N(0,1).
%     y           = lagmatrix(x , 4);  % Delay it by 4 samples.
%     y(isnan(y)) = 0;                 % Replace NaN's with zeros.
%     crosscorr(x,y)                   % It should peak at the 4th lag.
%
% See also AUTOCORR, PARCORR, FILTER.

%   Copyright 1999-2002 The MathWorks, Inc.   
%   $Revision: 1.6 $  $Date: 2002/03/11 19:37:14 $

if nargin < 2
   error(' ''Series1'' and ''Series2'' are both required.');
end

%
% Ensure the sample data are VECTORS.
%

[rows , columns]  =  size(Series1);

if ((rows ~= 1) & (columns ~= 1)) | (rows*columns < 2)
   error(' Input ''Series1'' must be a vector.');
end

[rows , columns]  =  size(Series2);

if ((rows ~= 1) & (columns ~= 1)) | (rows*columns < 2)
   error(' Input ''Series2'' must be a vector.');
else

end

rowSeries   =  size(Series1,1) == 1;

Series1     =  Series1(:);                              % Ensure a column vector
Series2     =  Series2(:);                              % Ensure a column vector

n           =  min(length(Series1) , length(Series2));  % Sample size.
defaultLags =  20;                                      % BJR recommend about 20 lags.

%
% Ensure the number of lags, nLags, is a positive 
% integer scalar and set default if necessary.
%

if (nargin >= 3) & ~isempty(nLags)
   if prod(size(nLags)) > 1
      error(' Number of lags ''nLags'' must be a scalar.');
   end
   if (round(nLags) ~= nLags) | (nLags <= 0)
      error(' Number of lags ''nLags'' must be a positive integer.');
   end
   if nLags > (n - 1)
      error(' Number of lags ''nLags'' must not exceed ''Series'' length - 1.');
   end
else
   nLags  =  min(defaultLags , n - 1);
end

%
% Ensure the number of standard deviations, nSTDs, is a positive 
% scalar and set default if necessary.
%

if (nargin >= 4) & ~isempty(nSTDs)
   if prod(size(nSTDs)) > 1
      error(' Number of standard deviations ''nSTDs'' must be a scalar.');
   end
   if nSTDs < 0
      error(' Number of standard deviations ''nSTDs'' must be non-negative.');
   end
else
   nSTDs =  2;     % Default is 2 standard errors (95% condfidence interval).
end

%
% The FILTER command could be used to compute the XCF, but FFT-based 
% computation is significantly faster for large data sets.
%

Series1 =  Series1 - mean(Series1);
Series2 =  Series2 - mean(Series2);
L1      =  length(Series1);
L2      =  length(Series2);

if L1 > L2
   Series2(L1)  =  0;
elseif L1 < L2
   Series1(L2)  =  0;
end

nFFT   =  2^(nextpow2(max([L1 L2])) + 1);
F      =  fft([Series1(:) Series2(:)] , nFFT); 

ACF1   =  ifft(F(:,1) .* conj(F(:,1)));
ACF2   =  ifft(F(:,2) .* conj(F(:,2)));

XCF    =  ifft(F(:,1) .* conj(F(:,2)));
XCF    =  XCF([(nLags+1:-1:1)  (nFFT:-1:(nFFT-nLags+1))]);
XCF    =  real(XCF) / (sqrt(ACF1(1)) * sqrt(ACF2(1)));

Lags   =  [-nLags:nLags]';
bounds =  [nSTDs ; -nSTDs] / sqrt(n);


if nargout == 0                     % Make plot if requested.

%
%  Plot the sample XCF.
%
   lineHandles  =  stem(Lags , XCF , 'filled' , 'r-o');
   set   (lineHandles(1) , 'MarkerSize' , 4)
   grid  ('on')
   xlabel('Lag')
   ylabel('Sample Cross Correlation')
   title ('Sample Cross Correlation Function (XCF)')
   hold  ('on')
%
%  Plot the confidence bounds under the hypothesis 
%  that the underlying series are uncorrelated.
%
   a  =  axis;

   plot([a(1) a(1) ; a(2) a(2)] , [bounds([1 1]) bounds([2 2])] , '-b');

   plot([a(1) a(2)] , [0 0] , '-k');
   hold('off')

   clear  XCF  Lags  bounds

else

%
%  Re-format outputs for compatibility with the SERIES1 input. When SERIES1 is
%  input as a row vector, then pass the outputs as a row vectors; when SERIES1
%  is a column vector, then pass the outputs as a column vectors.
%
   if rowSeries
      XCF     =  XCF.';
      Lags    =  Lags.';
      bounds  =  bounds.';
   end

end

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久婷婷久久一区二区三区| 在线免费观看不卡av| 亚洲高清不卡在线观看| 一区二区三区资源| 亚洲毛片av在线| 亚洲欧洲av色图| 亚洲欧美乱综合| 亚洲成a人在线观看| 丝袜诱惑制服诱惑色一区在线观看| 亚洲高清免费在线| 日韩二区三区四区| 精品一区二区在线免费观看| 国产剧情一区二区| av成人老司机| 欧美精品自拍偷拍| 精品国产一区二区三区av性色 | 日韩精品综合一本久道在线视频| 欧美视频在线播放| 精品福利在线导航| 国产精品久久久久精k8| 亚洲精品ww久久久久久p站| 亚洲高清免费在线| 国产美女在线精品| 91色综合久久久久婷婷| 欧美色男人天堂| 日本一区二区在线不卡| 亚洲自拍都市欧美小说| 蜜臂av日日欢夜夜爽一区| 国产**成人网毛片九色 | 99视频一区二区| 欧美亚州韩日在线看免费版国语版| 欧美日本免费一区二区三区| 久久久精品蜜桃| 中文幕一区二区三区久久蜜桃| 亚洲一区二区三区在线看| 精品一区二区免费| 一本一本久久a久久精品综合麻豆| 欧美日本一道本| 1024亚洲合集| 国产综合成人久久大片91| 91福利资源站| 国产精品美女视频| 黄网站免费久久| 欧美色爱综合网| 国产精品卡一卡二| 国产一区二区网址| 欧美日韩国产综合久久| 中文字幕一区二区三区色视频| 免费观看日韩电影| 欧美日韩综合不卡| 最新日韩在线视频| 国产精品小仙女| 26uuu亚洲综合色| 免费日本视频一区| 在线观看国产91| 日韩伦理电影网| 99精品1区2区| 中文字幕精品一区二区精品绿巨人| 美女视频黄久久| 欧美一区二区三区的| 亚洲电影视频在线| 欧美体内she精视频| 亚洲乱码国产乱码精品精的特点 | 色婷婷激情综合| 国产精品久久三区| 本田岬高潮一区二区三区| 国产偷国产偷精品高清尤物| 国产高清无密码一区二区三区| 日韩精品一区二区三区四区| 蜜臀av一区二区| 欧美精品一区二区三区四区| 毛片一区二区三区| 日韩精品一区二区三区视频在线观看| 天天av天天翘天天综合网| 欧美日韩精品福利| 蜜桃视频在线一区| 精品日韩在线一区| 国产制服丝袜一区| 久久先锋影音av鲁色资源| 国产麻豆精品theporn| 欧美激情一区二区三区蜜桃视频| 国产成人av电影| 一区在线播放视频| 欧洲一区在线电影| 青青草伊人久久| 精品成人一区二区| 成人动漫在线一区| 亚洲激情在线激情| 日韩视频一区二区三区在线播放| 精品一区免费av| 国产精品福利电影一区二区三区四区| 国产91露脸合集magnet | 欧美大白屁股肥臀xxxxxx| 精品一区二区三区在线播放视频 | 中文字幕一区免费在线观看| 99精品久久99久久久久| 亚洲一区二区视频在线| 精品久久久久久久人人人人传媒| 国产高清视频一区| 亚洲精品亚洲人成人网| 欧美一区日韩一区| 福利电影一区二区| 五月激情综合网| 久久久高清一区二区三区| 色嗨嗨av一区二区三区| 免费国产亚洲视频| 亚洲天堂成人在线观看| 欧美成人乱码一区二区三区| 不卡一区中文字幕| 日韩精品一卡二卡三卡四卡无卡| 欧美激情一区二区三区蜜桃视频 | 国产精品久久久久久一区二区三区| 色综合视频一区二区三区高清| 日韩1区2区3区| 国产精品国产三级国产| 日韩一区二区麻豆国产| 99国产精品视频免费观看| 日本亚洲免费观看| 日韩理论在线观看| 久久一日本道色综合| 91.成人天堂一区| 成人国产免费视频| 久久国产精品色| 亚洲成av人片在线| 亚洲男人的天堂在线观看| 久久久精品天堂| 欧美刺激脚交jootjob| 欧美日韩激情一区二区三区| 91小视频免费看| 成人午夜视频在线| 国产一区二区精品久久91| 五月综合激情网| 一区二区三区精品视频在线| 中文欧美字幕免费| 日本一区二区三区视频视频| 精品久久一区二区| 日韩你懂的电影在线观看| 欧美日韩三级一区| 欧美日韩国产小视频在线观看| 成人av午夜电影| 国产91丝袜在线播放九色| 国产乱一区二区| 精品午夜久久福利影院| 另类欧美日韩国产在线| 日日摸夜夜添夜夜添亚洲女人| 亚洲一区二区在线免费看| 亚洲精品午夜久久久| 亚洲精品视频一区| 亚洲乱码精品一二三四区日韩在线| 中文字幕欧美一| 亚洲人成网站色在线观看| 专区另类欧美日韩| 亚洲欧美日韩国产另类专区| 亚洲精品中文在线| 亚洲在线视频免费观看| 亚洲高清三级视频| 日韩高清一区在线| 久久精品99久久久| 狠狠色综合播放一区二区| 激情六月婷婷久久| 成人黄色777网| 91精彩视频在线| 欧美另类久久久品| 精品国产sm最大网站免费看| 国产片一区二区| 亚洲人成网站在线| 午夜精品国产更新| 国内精品伊人久久久久av一坑 | 精品夜夜嗨av一区二区三区| 国产一区二区精品久久| 成人免费精品视频| 欧美色电影在线| 久久这里只精品最新地址| 亚洲欧洲一区二区三区| 亚洲大型综合色站| 国产综合久久久久影院| 91在线精品秘密一区二区| 欧美三级欧美一级| 久久青草欧美一区二区三区| 日韩美女精品在线| 美女视频免费一区| 91丨porny丨首页| 88在线观看91蜜桃国自产| 欧美国产日韩在线观看| 午夜视频一区在线观看| 懂色av一区二区在线播放| 精品视频在线看| 国产亚洲成年网址在线观看| 伊人性伊人情综合网| 久久国产乱子精品免费女| 色婷婷亚洲婷婷| 国产欧美在线观看一区| 天堂久久久久va久久久久| eeuss鲁一区二区三区| 欧美日本韩国一区| 1000部国产精品成人观看| 韩国成人精品a∨在线观看| 欧美性猛交xxxx乱大交退制版| 欧美精品一区视频| 日韩和欧美一区二区|