public class NonlinearRegressionExpr extends AbstractParsedNonlinearRegression
Formatting rules are shown in AbstractParsedNonlinearRegression.
Usage: <equation to be fit...>
UserFormula
AttributeSelector, 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, setOptions
addCoefficient, addCoefficient, addVariable, getCoefficientName, getFittedCoefficient, getMaxIter, getNFittingParameters, getVariableName, makeObjectiveFunction, NCoefficients, NVariables, run_protected, runCommand, runNonlinearCommand, setInitialGuess, setMaxIterations, train_protected
clone, doRobustRegression, getRobustRegressionQ, robustTraining, setRobustRegressionQ
about, 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, train
protected java.lang.String defineVariables(java.lang.String Expression) throws java.lang.Exception
AbstractNonlinearRegression
defineVariables
in class AbstractParsedNonlinearRegression
Expression
- 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 AbstractParsedNonlinearRegression
Expression
- User-defined functionexpr.SyntaxException
- If the formula is illegibleprotected double function(double[] variables, double[] coeff)
AbstractNonlinearRegression
function
in class AbstractNonlinearRegression
variables
- Values of attributes used as independent variablescoeff
- Coefficients of equation