Home > chronux_1_15 > locfit > lfmarg.m

lfmarg

PURPOSE ^

computes grid margins from a locfit object, used for plotting.

SYNOPSIS ^

function xfit = lfmarg(fit)

DESCRIPTION ^

 computes grid margins from a locfit object, used for plotting.
 Usage: xfit = lfmarg(fit)

 this function is called from lfplot and lfband, will not normally
 be called directly by users.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function xfit = lfmarg(fit)
0002 % computes grid margins from a locfit object, used for plotting.
0003 % Usage: xfit = lfmarg(fit)
0004 %
0005 % this function is called from lfplot and lfband, will not normally
0006 % be called directly by users.
0007 
0008 box = fit{4}{4};
0009 d = size(box,1);
0010 xfit = cell(1,d);
0011 mg = 10*ones(1,d);
0012 if (d==1) mg = 200; end;
0013 if (d==2) mg = [51 50]; end;
0014 for i=1:d
0015     xfit{i} = box(i,1) + (box(i,2)-box(i,1))*(0:mg(i))'/mg(i);
0016 end;
0017 
0018 return;

Generated on Tue 15-Aug-2006 22:51:57 by m2html © 2003