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.
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.
Americhe
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- 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)