This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function X = simpoisson(n, q, lambda, freq) | |
% Simulation of poisson point processes | |
% | |
% Syntax: | |
% X = simpoisson(n, q, lambda) | |
% | |
% Description: | |
% It simulates a multivariate Poisson point process. | |
% | |
% Input Arguments: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Y = polyfilt(X, A) | |
% Polynomial filtering | |
% | |
% Syntax: | |
% Y = polyfilt(YL, A) | |
% | |
% Description: | |
% It performs polynomial filtering as follows. | |
% | |
% y = A(0)*x + A(1)*x^2 + A(2)*x^3 + ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Y = filt(X, H) | |
% Linear filtering of a multivariate time series. | |
% | |
% Syntax: | |
% Y = filt(X, H) | |
% | |
% Description: | |
% It linearly filters a time series through a predefined impulse response | |
% function. | |
% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function X = simwhite(n, q, va) | |
% n : the length of time series | |
% q : the number of time series | |
% va : the variance of each time series | |
% | |
% Copyright (c) 2012 Wonsang You | |
% JC Peace and Grace | |
X = normrnd(0,sqrt(va),n,q); |