public class NonlinearRegressionExpr extends AbstractParsedNonlinearRegression
Formatting rules are shown in AbstractParsedNonlinearRegression.
Usage: <equation to be fit...>
UserFormulaAttributeSelector, trained, TrainingStats, validated, ValidationStats| Constructor and Description |
|---|
NonlinearRegressionExpr() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
defineVariables(java.lang.String Expression)
Reads an expression and stores the names of all variables.
|
protected double |
function(double[] variables,
double[] coeff)
Function defined by the user.
|
void |
prepareEvaluator(java.lang.String Expression)
Define the internal
Evaluator and parse the user-defined function |
defineCoefficients, defineVariables, parseFormula, printModel_protected, printModelDescriptionDetails, printUsage, setOptionsaddCoefficient, addCoefficient, addVariable, getCoefficientName, getFittedCoefficient, getMaxIter, getNFittingParameters, getVariableName, makeObjectiveFunction, NCoefficients, NVariables, run_protected, runCommand, runNonlinearCommand, setInitialGuess, setMaxIterations, train_protectedclone, doRobustRegression, getRobustRegressionQ, robustTraining, setRobustRegressionQabout, crossValidate, crossValidate, crossValidate, done, externallyValidate, getAttributeSelector, getCitations, getFilter, getTrainTime, getValidationMethod, handleSetCommand, isTrained, isValidated, loadState, printCommand, printDescription, printModel, resetModel, run, saveCommand, saveState, setAttributeSelector, setComponent, setFilter, train, trainprotected java.lang.String defineVariables(java.lang.String Expression)
throws java.lang.Exception
AbstractNonlinearRegressiondefineVariables in class AbstractParsedNonlinearRegressionExpression - Expression to be parsedjava.lang.Exception - If poorly-formed expressionpublic void prepareEvaluator(java.lang.String Expression)
throws expr.SyntaxException
Evaluator and parse the user-defined functionprepareEvaluator in class AbstractParsedNonlinearRegressionExpression - User-defined functionexpr.SyntaxException - If the formula is illegibleprotected double function(double[] variables,
double[] coeff)
AbstractNonlinearRegressionfunction in class AbstractNonlinearRegressionvariables - Values of attributes used as independent variablescoeff - Coefficients of equation