Module datarush.analytics
Class AbstractPMMLRegressionModel.NumericPredictor
java.lang.Object
com.pervasive.datarush.analytics.regression.AbstractPMMLRegressionModel.NumericPredictor
- Enclosing class:
- AbstractPMMLRegressionModel
Capture information about numeric predictor values.
-
Constructor Summary
ConstructorsConstructorDescriptionNumericPredictor(String fieldName, double coefficient) Create a numeric predictor for the given independent variable with the default exponent value of 1.NumericPredictor(String fieldName, double coefficient, int degreesOfFreedom, double standardError, double tTest, double pValue) Create a numeric predictor for the given independent variable with the default exponent value of 1 and the specified statistics.NumericPredictor(String fieldName, int exponent, double coefficient) Create a numeric predictor for the given independent variable.NumericPredictor(String fieldName, int exponent, double coefficient, int degreesOfFreedom, double standardError, double tTest, double pValue) Create a numeric predictor for the given independent variable with the specified statistics. -
Method Summary
Modifier and TypeMethodDescriptiondoublecalculate(double value) Given a value of the independent variable, calculate its value to add to the resultant dependent value.doubleGet the coefficient value.Get the degrees of freedom value.intGet the exponent value.Get the independent variable name.Get the p value.Get the standard error value.getTTest()Get the t-test value.voidsetExtensionStatistic(String name, double value)
-
Constructor Details
-
NumericPredictor
Create a numeric predictor for the given independent variable.- Parameters:
fieldName- name of the independent variableexponent- exponent of this variablecoefficient- coefficient (Beta) of this variable
-
NumericPredictor
public NumericPredictor(String fieldName, int exponent, double coefficient, int degreesOfFreedom, double standardError, double tTest, double pValue) Create a numeric predictor for the given independent variable with the specified statistics.- Parameters:
fieldName- name of the independent variableexponent- exponent of this variablecoefficient- coefficient (Beta) of this variabledegreesOfFreedom-standardError-tTest-pValue-
-
NumericPredictor
Create a numeric predictor for the given independent variable with the default exponent value of 1.- Parameters:
fieldName- name of the independent variablecoefficient- coefficient (Beta) of this variable
-
NumericPredictor
public NumericPredictor(String fieldName, double coefficient, int degreesOfFreedom, double standardError, double tTest, double pValue) Create a numeric predictor for the given independent variable with the default exponent value of 1 and the specified statistics.- Parameters:
fieldName- name of the independent variablecoefficient- coefficient (Beta) of this variabledegreesOfFreedom-standardError-tTest-pValue-
-
-
Method Details
-
getFieldName
Get the independent variable name.- Returns:
- independent variable name
-
getExponent
public int getExponent()Get the exponent value.- Returns:
- exponent value
-
getCoefficient
public double getCoefficient()Get the coefficient value.- Returns:
- coefficient value
-
getDegreesOfFreedom
Get the degrees of freedom value.- Returns:
- degrees of freedom value
-
getStandardError
Get the standard error value.- Returns:
- standard error value
-
getTTest
Get the t-test value.- Returns:
- t-test value
-
getPValue
Get the p value.- Returns:
- p value
-
calculate
public double calculate(double value) Given a value of the independent variable, calculate its value to add to the resultant dependent value.- Parameters:
value- independent variable value- Returns:
- contribution to dependent variable
-
setExtensionStatistic
-