public class NumericPredictor extends Term implements HasExtensions
Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element ref="{http://www.dmg.org/PMML-4_2}Extension" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
<attribute name="name" use="required" type="{http://www.dmg.org/PMML-4_2}FIELD-NAME" />
<attribute name="exponent" type="{http://www.dmg.org/PMML-4_2}INT-NUMBER" default="1" />
<attribute name="coefficient" use="required" type="{http://www.dmg.org/PMML-4_2}REAL-NUMBER" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected double |
coefficient |
protected java.lang.Integer |
exponent |
protected java.util.List<Extension> |
extensions |
protected FieldName |
name |
| Constructor and Description |
|---|
NumericPredictor() |
NumericPredictor(FieldName name,
double coefficient) |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
double |
getCoefficient()
Gets the value of the coefficient property.
|
int |
getExponent()
Gets the value of the exponent property.
|
java.util.List<Extension> |
getExtensions()
Gets the value of the extensions property.
|
FieldName |
getName()
Gets the value of the name property.
|
boolean |
hasExtensions() |
void |
setCoefficient(double value)
Sets the value of the coefficient property.
|
void |
setExponent(java.lang.Integer value)
Sets the value of the exponent property.
|
void |
setName(FieldName value)
Sets the value of the name property.
|
NumericPredictor |
withCoefficient(double value) |
NumericPredictor |
withExponent(java.lang.Integer value) |
NumericPredictor |
withExtensions(java.util.Collection<Extension> values) |
NumericPredictor |
withExtensions(Extension... values) |
NumericPredictor |
withName(FieldName value) |
getLocator, setLocatorprotected FieldName name
protected java.lang.Integer exponent
protected double coefficient
protected java.util.List<Extension> extensions
public NumericPredictor()
public NumericPredictor(FieldName name, double coefficient)
public FieldName getName()
public void setName(FieldName value)
public int getExponent()
Stringpublic void setExponent(java.lang.Integer value)
value - allowed object is
Stringpublic double getCoefficient()
public void setCoefficient(double value)
public java.util.List<Extension> getExtensions()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the extensions property.
For example, to add a new item, do as follows:
getExtensions().add(newItem);
Objects of the following type(s) are allowed in the list
Extension
getExtensions in interface HasExtensionspublic NumericPredictor withName(FieldName value)
public NumericPredictor withExponent(java.lang.Integer value)
public NumericPredictor withCoefficient(double value)
public NumericPredictor withExtensions(Extension... values)
public NumericPredictor withExtensions(java.util.Collection<Extension> values)
public boolean hasExtensions()
hasExtensions in interface HasExtensionspublic VisitorAction accept(Visitor visitor)
Copyright © 2015 University of Tartu. All Rights Reserved.