Home > wafo > multidim > private > memfun.m

memfun

PURPOSE ^

private function for MEM

SYNOPSIS ^

y = function(x,P1,P2,P3,P4)

DESCRIPTION ^

  MEMFUN private function for MEM

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SUBFUNCTIONS ^

SOURCE CODE ^

01 function y = function(x,P1,P2,P3,P4)
02 % MEMFUN private function for MEM  
03 y = ((simpson(P1,P2.*repmat(exp(P3*transpose(x)),1,P4))));
04 
05 % comment out this if fmins,fminu, fminsearch fminunc is used
06 %return
07 
08 ind = isnan(y);
09 if any(ind)
10   y(ind) = x(ind)*100;
11 end
12 %(y)
13 %y = log(1+y);
14 
15 %
16 y = sum((abs(y)));
17 
18 %

Mathematical Statistics
Centre for Mathematical Sciences
Lund University with Lund Institute of Technology

Comments or corrections to the WAFO group


Generated on Thu 06-Oct-2005 02:21:16 for WAFO by m2html © 2003