public class KNNInput extends ComparisonField implements com.sun.xml.bind.Locatable, 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="field" use="required" type="{http://www.dmg.org/PMML-4_2}FIELD-NAME" />
<attribute name="fieldWeight" type="{http://www.dmg.org/PMML-4_2}REAL-NUMBER" default="1" />
<attribute name="compareFunction" type="{http://www.dmg.org/PMML-4_2}COMPARE-FUNCTION" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected CompareFunctionType |
compareFunction |
protected List<Extension> |
extensions |
protected FieldName |
field |
protected Double |
fieldWeight |
protected Locator |
locator |
| Constructor and Description |
|---|
KNNInput()
Deprecated.
|
KNNInput(FieldName field) |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
CompareFunctionType |
getCompareFunction()
Gets the value of the compareFunction property.
|
List<Extension> |
getExtensions()
Gets the value of the extensions property.
|
FieldName |
getField()
Gets the value of the field property.
|
double |
getFieldWeight()
Gets the value of the fieldWeight property.
|
Double |
getSimilarityScale()
Gets the value of the similarityScale property.
|
void |
setCompareFunction(CompareFunctionType value)
Sets the value of the compareFunction property.
|
void |
setField(FieldName value)
Sets the value of the field property.
|
void |
setFieldWeight(Double value)
Sets the value of the fieldWeight property.
|
void |
setSimilarityScale(Double similarityScale)
Sets the value of the similarityScale property.
|
void |
setSourceLocation(Locator newLocator) |
Locator |
sourceLocation() |
KNNInput |
withCompareFunction(CompareFunctionType value) |
KNNInput |
withExtensions(Collection<Extension> values) |
KNNInput |
withExtensions(Extension... values) |
KNNInput |
withField(FieldName value) |
KNNInput |
withFieldWeight(Double value) |
protected FieldName field
protected Double fieldWeight
protected CompareFunctionType compareFunction
protected Locator locator
@Deprecated public KNNInput()
public KNNInput(FieldName field)
public 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 FieldName getField()
getField in class ComparisonFieldStringpublic void setField(FieldName value)
setField in class ComparisonFieldvalue - allowed object is
Stringpublic double getFieldWeight()
getFieldWeight in class ComparisonFieldDoublepublic void setFieldWeight(Double value)
setFieldWeight in class ComparisonFieldvalue - allowed object is
Doublepublic CompareFunctionType getCompareFunction()
getCompareFunction in class ComparisonFieldCompareFunctionTypepublic void setCompareFunction(CompareFunctionType value)
setCompareFunction in class ComparisonFieldvalue - allowed object is
CompareFunctionTypepublic KNNInput withExtensions(Collection<Extension> values)
public KNNInput withCompareFunction(CompareFunctionType value)
public Locator sourceLocation()
sourceLocation in interface com.sun.xml.bind.LocatablesourceLocation in class PMMLObjectpublic void setSourceLocation(Locator newLocator)
setSourceLocation in class PMMLObjectpublic Double getSimilarityScale()
getSimilarityScale in class ComparisonFieldUnsupportedOperationException - Always.public void setSimilarityScale(Double similarityScale)
setSimilarityScale in class ComparisonFieldUnsupportedOperationException - Always.public VisitorAction accept(Visitor visitor)
Copyright © 2014 University of Tartu. All Rights Reserved.