Class AbstractPMMLRegressionModel.NumericPredictor

  • Enclosing class:
    AbstractPMMLRegressionModel

    public static final class AbstractPMMLRegressionModel.NumericPredictor
    extends Object
    Capture information about numeric predictor values.
    • Constructor Detail

      • NumericPredictor

        public NumericPredictor​(String fieldName,
                                int exponent,
                                double coefficient)
        Create a numeric predictor for the given independent variable.
        Parameters:
        fieldName - name of the independent variable
        exponent - exponent of this variable
        coefficient - 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 variable
        exponent - exponent of this variable
        coefficient - coefficient (Beta) of this variable
        degreesOfFreedom -
        standardError -
        tTest -
        pValue -
      • NumericPredictor

        public NumericPredictor​(String fieldName,
                                double coefficient)
        Create a numeric predictor for the given independent variable with the default exponent value of 1.
        Parameters:
        fieldName - name of the independent variable
        coefficient - 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 variable
        coefficient - coefficient (Beta) of this variable
        degreesOfFreedom -
        standardError -
        tTest -
        pValue -
    • Method Detail

      • getFieldName

        public String 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

        public Integer getDegreesOfFreedom()
        Get the degrees of freedom value.
        Returns:
        degrees of freedom value
      • getStandardError

        public Double getStandardError()
        Get the standard error value.
        Returns:
        standard error value
      • getTTest

        public Double getTTest()
        Get the t-test value.
        Returns:
        t-test value
      • getPValue

        public Double 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

        public void setExtensionStatistic​(String name,
                                          double value)