www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@constar/pomGeneralRbfKernel.m

    function om = pomGeneralRbfKernel(con, kernel, mfile, hasWidth, hasCont)
%POMGENERALRBFKERNEL Generalized option manager for RBF Kernels
%
%  OM = POMGENERALRBFKERNEL(CON, KERNEL, MFILE, HASWIDTH, HASCONT)
%
%  See also CONSTAR, CONSTAR/GETCONSTRAINTFITOPTIONS.

%  Copyright 2005 The MathWorks, Inc. and Ford Global Technologies, Inc.


% Use an "optimisation manager" to handle the options
om = contextimplementation( xregoptmgr, con, '', '', kernel, str2func( mfile ) );

width = get( con.Model, 'width' );
om = AddOption( om, 'Width', width, {'numeric', [sqrt( eps ), Inf]}, 'RBF Width', hasWidth );

cont = num2str( get( con.Model, 'cont' ) );
om = AddOption( om, 'Cont', cont, '0|2|4|6', 'RBF Continuity', hasCont );


%------------------------------------------------------------------------------|
% EOF
%------------------------------------------------------------------------------|