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.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- 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)