public static final class AbstractPMMLRegressionModel.NumericPredictor extends Object
Constructor and Description |
---|
NumericPredictor(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.
|
Modifier and Type | Method and Description |
---|---|
double |
calculate(double value)
Given a value of the independent variable, calculate its value
to add to the resultant dependent value.
|
double |
getCoefficient()
Get the coefficient value.
|
Integer |
getDegreesOfFreedom()
Get the degrees of freedom value.
|
int |
getExponent()
Get the exponent value.
|
String |
getFieldName()
Get the independent variable name.
|
Double |
getPValue()
Get the p value.
|
Double |
getStandardError()
Get the standard error value.
|
Double |
getTTest()
Get the t-test value.
|
void |
setExtensionStatistic(String name,
double value) |
public NumericPredictor(String fieldName, int exponent, double coefficient)
fieldName
- name of the independent variableexponent
- exponent of this variablecoefficient
- coefficient (Beta) of this variablepublic NumericPredictor(String fieldName, int exponent, double coefficient, int degreesOfFreedom, double standardError, double tTest, double pValue)
fieldName
- name of the independent variableexponent
- exponent of this variablecoefficient
- coefficient (Beta) of this variabledegreesOfFreedom
- standardError
- tTest
- pValue
- public NumericPredictor(String fieldName, double coefficient)
fieldName
- name of the independent variablecoefficient
- coefficient (Beta) of this variablepublic NumericPredictor(String fieldName, double coefficient, int degreesOfFreedom, double standardError, double tTest, double pValue)
fieldName
- name of the independent variablecoefficient
- coefficient (Beta) of this variabledegreesOfFreedom
- standardError
- tTest
- pValue
- public String getFieldName()
public int getExponent()
public double getCoefficient()
public Integer getDegreesOfFreedom()
public Double getStandardError()
public Double getTTest()
public Double getPValue()
public double calculate(double value)
value
- independent variable valuepublic void setExtensionStatistic(String name, double value)
Copyright © 2021 Actian Corporation. All rights reserved.