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.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- 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)