Skip to content

Instantly share code, notes, and snippets.

View wonsang's full-sized avatar

Wonsang You wonsang

View GitHub Profile
@wonsang
wonsang / simpoisson.m
Last active June 8, 2017 20:31
Simulation of poisson point processes
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:
@wonsang
wonsang / polyfilt.m
Created June 8, 2017 03:36
Polynomial filtering
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 + ...
@wonsang
wonsang / filt.m
Created June 8, 2017 03:32
Linear filtering of a multivariate time series
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.
%
@wonsang
wonsang / simwhite
Created February 10, 2012 21:09
Simulation of multiple white Gaussian noises
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);