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.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.
Amerika
- 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)