lhs_empir - % Budiman (2003) % [m,nvar]=size(data);...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function s=lhs_empir(data,nsample) % s=lhs_empir(data,nsample) % perform lhs on multivariate empirical distribution % assume no correlation % Input: % data : data matrix (ndata,nvar) % nsample : no. of samples % Output: % s : random sample (nsample,nvar)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: % Budiman (2003) % [m,nvar]=size(data); ran=rand(nsample,nvar); s=zeros(nsample,nvar); for j=1: nvar idx=randperm(nsample); P=((idx'-ran(:,j))/nsample).*100; s(:,j)=prctile(data(:,j),P); end...
View Full Document

This note was uploaded on 12/10/2009 for the course ME master taught by Professor Mon during the Spring '09 term at Hanyang University.

Ask a homework question - tutors are online