pdf2d

pdf2d - function [p,x,y,P]=pdf2d(xdata,ydata,xbins,ybins) %...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
function [p,x,y,P]=pdf2d(xdata,ydata,xbins,ybins) % [p,x,y,P] = pdf2d(xdata,ydata,Mx,My) or % [p,x,y,P] = pdf2d(xdata,ydata,xbins,ybins) % % xdata : Vector of x data samples. % ydata : Vector of corresponding y data samples. % xbins : If xbins is a scalar, uses xbins equally spaced bins between % min(xdata) and max(xdata). If xbins is a vector, uses bins with % centers specified in vector xbins. OPTIONAL: Default xbins=10. % ybins : If ybins is a scalar, uses ybins equally spaced bins between % min(ydata) and max(ydata). If ybins is a vector, uses bins with % centers specified in vector ybins. OPTIONAL: Default ybins=10. % % p : Matrix of the pdf value estimates at the bins with centers given % in matrices x,y. % x : Matrix of x bin centers. % y : Matrix of corresponding y bin centers. (see meshgrid) % P : Vector of the corresponding PDF (CDF) value estimates at the % bins with centers given in x % % Finds the 2-D histogram-based pdf estimate of p_X(x) and PDF (CDF) % estimate of P_X(x) given the data in xdata and ydata. If no output % argument is given plots the estimate via mesh(x,y,p). The (1,1) element of % p corresponds to the minimum values of x and y. This is the upper left
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

pdf2d - function [p,x,y,P]=pdf2d(xdata,ydata,xbins,ybins) %...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online