Rank: 1376 based on 47 downloads (last 30 days) and 8 files submitted
photo

Pierce

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Pierce View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
25 Aug 2011 dealers deal inputs to outputs. caters for cases where the number of input and output arguments do not match Author: Pierce deal, dealers, dummyfun, dummy function, anonymous functions 2 0
25 Aug 2011 ola overlap and add functions Author: Pierce ola, overlap and add, allen rabiners, griffin lims 1 0
14 Aug 2011 pearspdf Pearson system probability distributions Author: Pierce pearson pdf pearson d..., pearson distribution 15 23
  • 5.0
5.0 | 3 ratings
07 Apr 2011 imprint reads an image file and prints it. Useful for converting tiff files to pdf and eps using matlab Author: Pierce img2pdf print image 1 0
15 Mar 2010 melfilter generates a mel filter bank for a given frequency vector Author: Pierce mfcc, mel frequency, mel filter bank 24 2
Comments and Ratings by Pierce View all
Updated File Comments Rating
14 Aug 2011 pearspdf Pearson system probability distributions Author: Pierce

Hey guys,
I appreciate all the comments etc.
But i don't have the time to fix these corrections. Its open source so feel free to change it and reuse it yourself.

Carsten Allefeld has made some modifications that fix the normalisation problem. Except in the case of the type 5 distribution.

The sizeOut error has also been fixed.

29 Sep 2010 pearspdf Pearson system probability distributions Author: Pierce

add this at line 164

p = p/sigma;

just after
p = pearson4pdf(X,m,nu,a,lambda);

it seems the the pdfs are off by this factor

28 Sep 2010 pearspdf Pearson system probability distributions Author: Pierce

% You need to normalise the histogram properly
[Y,X] = hist(pearsrnd(m{:},100000,1),100)
dX = diff(X)
% Forgot to include this line
dX = dX(1)
bar(X,Y/(sum(Y)*dX))
hold on;
plot(-6:0.01:6,pearspdf(-6:0.01:6,m{:}),'r')

28 Sep 2010 pearspdf Pearson system probability distributions Author: Pierce

m and m2 will be different. pearsrnd generates random numbers that follow the distribution.
if you generate more numbers the values will begin to match much better.
i.e.
m = {0,1,0,3};%Norm Distrib
[x,type, coefs] = pearsrnd(m{:},100000,1);
m2 = [mean(x) std(x) skewness(x) kurtosis(x)]

% better

m = {0,1,0,3};%Norm Distrib
[x,type, coefs] = pearsrnd(m{:},100000000000000,1);
m2 = [mean(x) std(x) skewness(x) kurtosis(x)]
% Won't have a enough memory
% m and m2 should be very close if not the same

% As you you generate more and more numbers, the error
% between m and m2 will become smaller and smaller

% You need to normalise the histogram properly
[Y,X] = hist(pearsrnd(m{:},100000,1),100)
dX = diff(X)
bar(X,Y/(sum(Y)*dX))
hold on;
plot(-6:0.01:6,pearspdf(-6:0.01:6,m{:}),'r')

21 Sep 2010 pearspdf Pearson system probability distributions Author: Pierce

you'll have to write them yourself so

Comments and Ratings on Pierce's Files View all
Updated File Comment by Comments Rating
14 Aug 2011 pearspdf Pearson system probability distributions Author: Pierce Pierce

Hey guys,
I appreciate all the comments etc.
But i don't have the time to fix these corrections. Its open source so feel free to change it and reuse it yourself.

Carsten Allefeld has made some modifications that fix the normalisation problem. Except in the case of the type 5 distribution.

The sizeOut error has also been fixed.

10 Nov 2010 pearspdf Pearson system probability distributions Author: Pierce Daryl

Question:

Occasionally I get an error Undefined function or variable 'sizeOut'. I can't find this value or variable in the code. Can anyone help?

13 Oct 2010 pearspdf Pearson system probability distributions Author: Pierce Nazarevych, Oleg

See good code in R
http://cran.r-project.org/web/packages/PearsonDS/

02 Oct 2010 pearspdf Pearson system probability distributions Author: Pierce Nazarevych, Oleg

edit your file:

122: case 1
....
136: p = betapdf(X,m1+1,m2+1)/sigma;
137: p=p/55;

177: case 6
...
187: p = fpdf(X,nu1,nu2)/sigma;
188: p=p/3;

and

195: p = fpdf(X,nu1,nu2)/sigma;
196: p=p/3;

it is not correct, but plot norm PDF hold on Hist (ecdfhist)

30 Sep 2010 pearspdf Pearson system probability distributions Author: Pierce Nazarevych, Oleg

and not correct for Pearson Type I
coefs = [1.2197 0.30669 -0.07322]

Top Tags Applied by Pierce
allen rabiners, anonymous functions, arrayfun, audio processing, bsxfun
Files Tagged by Pierce View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
25 Aug 2011 dealers deal inputs to outputs. caters for cases where the number of input and output arguments do not match Author: Pierce deal, dealers, dummyfun, dummy function, anonymous functions 2 0
25 Aug 2011 ola overlap and add functions Author: Pierce ola, overlap and add, allen rabiners, griffin lims 1 0
14 Aug 2011 pearspdf Pearson system probability distributions Author: Pierce pearson pdf pearson d..., pearson distribution 15 23
  • 5.0
5.0 | 3 ratings
07 Apr 2011 imprint reads an image file and prints it. Useful for converting tiff files to pdf and eps using matlab Author: Pierce img2pdf print image 1 0
15 Apr 2010 MANCOVAN Tools for Multivariate Analysis (Statistics Toolbox NOT Required) Author: William Gruner analysis of covarianc..., mancova, manovan, manova, multivariate response, ancovan 26 4
  • 4.5
4.5 | 2 ratings

Contact us at files@mathworks.com