public static final class AbstractPMMLRegressionModel.CategoricalPredictor extends Object
Constructor and Description |
---|
CategoricalPredictor(String fieldName,
String value,
double coefficient)
Create a CategoricalPredictor for a given possible value of a given discrete independent variable.
|
CategoricalPredictor(String fieldName,
String value,
double coefficient,
int degreesOfFreedom,
double standardError,
double tTest,
double pValue) |
Modifier and Type | Method and Description |
---|---|
double |
calculate(String fieldValue)
Given a value of the independent variable, calculate it's value
to add to the resultant dependent value.
|
double |
getCoefficient()
Get the coefficient value.
|
Integer |
getDegreesOfFreedom()
Get the degrees of freedom 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.
|
String |
getValue() |
void |
setExtensionStatistic(String name,
double value) |
public CategoricalPredictor(String fieldName, String value, double coefficient)
fieldName
- the name of the independent variablevalue
- the possible value of the independent variablecoefficient
- the weight of the predictor when the independent variable has that valuepublic String getFieldName()
public String getValue()
public double getCoefficient()
public Integer getDegreesOfFreedom()
public Double getStandardError()
public Double getTTest()
public Double getPValue()
public double calculate(String fieldValue)
fieldValue
- independent variable valuepublic void setExtensionStatistic(String name, double value)
Copyright © 2020 Actian Corporation. All rights reserved.