CreateAlgorithm
Create algorithm
Description
creates an algorithm of the specified type.NewAlg = CreateAlgorithm(Alg,AlgorithmName)
Examples
Change the fit algorithm for a model.
model = mbcmodel.CreateModel('Polynomial', 2); minpress = model.FitAlgorithm.CreateAlgorithm('Minimize PRESS'); model.FitAlgorithm = minpress;
AlgorithmName determines what properties you can
set. Display the properties for an algorithm.
model.FitAlgorithm.properties
Algorithm: Minimize PRESS
Alternatives: 'Least Squares','Forward Selection','Backward
Selection','Prune'
MaxIter: Maximum Iterations (int: [1,1000])Input Arguments
Algorithm, specified as a mbcmodel.fitalgorithm object.
Algorithm name, specified as a character vector. AlgorithmName
must be in the list of alternative algorithms given by getAlternativeNames.
Output Arguments
New algorithm, specified as a character vector.
Algorithms
AlgorithmName determines what properties you can set.
Polynomials, hybrid splines, and the StepAlgorithm for
RBF algorithms use these linear models.
| Algorithm | Alternatives |
|---|---|
Least Squares | 'Minimize PRESS','Forward Selection','Backward Selection','Prune'
|
Minimize PRESS | 'Least Squares','Forward Selection','Backward
Selection','Prune' |
Forward selection | 'Least Squares','Minimize PRESS','Backward
Selection','Prune' |
Backward selection |
|
Prune |
|
For information about any of the RBF and Hybrid RBF algorithm properties, see Radial Basis Functions for Model Building and Fitting Routines.
| Algorithm | Alternatives | |
|---|---|---|
| Width Selection | TrialWidths | 'Least Squares','Forward Selection','Backward
Selection','Prune' |
WidPerDim | 'TrialWidths','Tree Regression' | |
Tree Regression |
| |
| Lambda Selection | IterateRidge |
|
| IterateRols | 'IterateRidge','StepItRols' | |
| StepItRols | 'IterateRidge','IterateRols' | |
| Center Selection | Rols | 'RedErr','WiggleCenters','CenterExchange' |
| RedErr | 'Rols','WiggleCenters','CenterExchange' | |
| WiggleCenters | 'Rols','RedErr','CenterExchange' | |
| CenterExchange | 'Rols','RedErr','WiggleCenters' | |
| Tree Regression | Trial Alpha | 'Specify Alpha' |
| Specify Alpha | 'Trial Alpha' | |
| Tree-based Center Selection | 'Generic Center Selection' | |
| Generic Center Selection | 'Tree-based Center Selection' | |
| Algorithm | Alternatives | |
|---|---|---|
| Width Selection | TrialWidths | 'WidPerDim','Tree Regression' |
| Nested Fit | Twostep | 'Interlace' |
Interlace | 'Twostep' | |
| Algorithm | Alternatives | |
|---|---|---|
| Convex Hull | 'WidPerDim','Tree Regression' | |
| Ellipsoid | Constraint Fitting | 'Interlace' |
Boundary Points | 'Twostep' | |
| Star-shaped | Constraint Fitting | |
| Star-Shaped – Special Points | Star-shaped Points | 'Mean', 'Median', 'Mid Range', 'Min Ellipse', 'User
Defined' |
| Star-Shaped – Boundary Points | Boundary Only (no further options) | |
| Star-Shaped – Constraint Fit | Star-shaped RBF Fit | |
| Interpolation | ||
Version History
Introduced in R2007a
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)