Class KNNInput

java.lang.Object
weka.core.pmml.jaxbbindings.KNNInput

public class KNNInput extends Object

Java class for KNNInput element declaration.

The following schema fragment specifies the expected content contained within this class.

 <element name="KNNInput">
   <complexType>
     <complexContent>
       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
         <sequence>
           <element ref="{http://www.dmg.org/PMML-4_1}Extension" maxOccurs="unbounded" minOccurs="0"/>
         </sequence>
         <attribute name="compareFunction" type="{http://www.dmg.org/PMML-4_1}COMPARE-FUNCTION" />
         <attribute name="field" use="required" type="{http://www.dmg.org/PMML-4_1}FIELD-NAME" />
         <attribute name="fieldWeight" type="{http://www.dmg.org/PMML-4_1}REAL-NUMBER" default="1" />
       </restriction>
     </complexContent>
   </complexType>
 </element>
 
  • Constructor Details

    • KNNInput

      public KNNInput()
  • Method Details

    • getExtension

      public List<Extension> getExtension()
      Gets the value of the extension property.

      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 extension property.

      For example, to add a new item, do as follows:

          getExtension().add(newItem);
       

      Objects of the following type(s) are allowed in the list Extension

    • getCompareFunction

      public COMPAREFUNCTION getCompareFunction()
      Gets the value of the compareFunction property.
      Returns:
      possible object is COMPAREFUNCTION
    • setCompareFunction

      public void setCompareFunction(COMPAREFUNCTION value)
      Sets the value of the compareFunction property.
      Parameters:
      value - allowed object is COMPAREFUNCTION
    • getField

      public String getField()
      Gets the value of the field property.
      Returns:
      possible object is String
    • setField

      public void setField(String value)
      Sets the value of the field property.
      Parameters:
      value - allowed object is String
    • getFieldWeight

      public double getFieldWeight()
      Gets the value of the fieldWeight property.
      Returns:
      possible object is Double
    • setFieldWeight

      public void setFieldWeight(Double value)
      Sets the value of the fieldWeight property.
      Parameters:
      value - allowed object is Double