Rank: 59589 based on 0 downloads (last 30 days) and 0 file submitted
photo

Richard Edmonds

E-mail

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by Richard Edmonds View all
Updated File Comments Rating
30 Oct 2014 2D Weighted Polynomial Fitting and Evaluation Two scripts: polyfitweighted2 fits 2D data with weights, and polyval2 evaluates the 2D polynomial Author: Salman Rogers

my bad,
Just having problems with matrix dimensions. lol.

It can be useful to generate Z from the outputs of meshgrid(x,y) so that the dimensions are correct.

09 Feb 2014 Circular Statistics Toolbox (Directional Statistics) Compute descriptive and inferential statistics for circular or directional data. Author: Philipp Berens

Actually, ignore the inverse_cdf function I have provided. It should generate a vlaue for kappa and it needs adjusting for values of thetahat other than zero.

07 Feb 2014 Circular Statistics Toolbox (Directional Statistics) Compute descriptive and inferential statistics for circular or directional data. Author: Philipp Berens

Great submission. It would be nice to have cdf and inversion cdf for the vmpdf functions. Here's what I wrote for my needs
function p = circ_vmcdf(alpha, thetahat, kappa)
%integrates the pdf from an angle of -pi to an angle alpha
F = @(x)circ_vmpdf(x, thetahat, kappa);
p = quad(F,-pi(),alpha);
end

function theta = circ_vminv(p, thetahat, kappa)
%computes the inverse of the abovecirc_vmcdf.
fun =@(alpha)(circ_vmcdf(alpha, thetahat, kappa)-p);
theta = fzero(fun,[-pi pi]);
end

01 Sep 2010 Line clipping Line clipping by Cyrus Beck algorithm Author: Chandan

Good stuff, all working. It's also been a nice basis for the development of a 3D cyrus-beck lineclipping function.

Thanks.

17 Feb 2010 Line clipping Line clipping by Cyrus Beck algorithm Author: Chandan

Needs fixing, see comment.

Contact us