weka.core.pmml.jaxbbindings.ComparisonMeasure Maven / Gradle / Ivy
Show all versions of weka-dev Show documentation
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2013.12.20 at 12:48:21 PM GMT
//
package weka.core.pmml.jaxbbindings;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for ComparisonMeasure element declaration.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <element name="ComparisonMeasure">
* <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"/>
* <choice>
* <element ref="{http://www.dmg.org/PMML-4_1}euclidean"/>
* <element ref="{http://www.dmg.org/PMML-4_1}squaredEuclidean"/>
* <element ref="{http://www.dmg.org/PMML-4_1}chebychev"/>
* <element ref="{http://www.dmg.org/PMML-4_1}cityBlock"/>
* <element ref="{http://www.dmg.org/PMML-4_1}minkowski"/>
* <element ref="{http://www.dmg.org/PMML-4_1}simpleMatching"/>
* <element ref="{http://www.dmg.org/PMML-4_1}jaccard"/>
* <element ref="{http://www.dmg.org/PMML-4_1}tanimoto"/>
* <element ref="{http://www.dmg.org/PMML-4_1}binarySimilarity"/>
* </choice>
* </sequence>
* <attribute name="compareFunction" type="{http://www.dmg.org/PMML-4_1}COMPARE-FUNCTION" default="absDiff" />
* <attribute name="kind" use="required">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="distance"/>
* <enumeration value="similarity"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="maximum" type="{http://www.dmg.org/PMML-4_1}NUMBER" />
* <attribute name="minimum" type="{http://www.dmg.org/PMML-4_1}NUMBER" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extension",
"euclidean",
"squaredEuclidean",
"chebychev",
"cityBlock",
"minkowski",
"simpleMatching",
"jaccard",
"tanimoto",
"binarySimilarity"
})
@XmlRootElement(name = "ComparisonMeasure")
public class ComparisonMeasure {
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_1", required = true)
protected List extension;
@XmlElement(namespace = "http://www.dmg.org/PMML-4_1")
protected Euclidean euclidean;
@XmlElement(namespace = "http://www.dmg.org/PMML-4_1")
protected SquaredEuclidean squaredEuclidean;
@XmlElement(namespace = "http://www.dmg.org/PMML-4_1")
protected Chebychev chebychev;
@XmlElement(namespace = "http://www.dmg.org/PMML-4_1")
protected CityBlock cityBlock;
@XmlElement(namespace = "http://www.dmg.org/PMML-4_1")
protected Minkowski minkowski;
@XmlElement(namespace = "http://www.dmg.org/PMML-4_1")
protected SimpleMatching simpleMatching;
@XmlElement(namespace = "http://www.dmg.org/PMML-4_1")
protected Jaccard jaccard;
@XmlElement(namespace = "http://www.dmg.org/PMML-4_1")
protected Tanimoto tanimoto;
@XmlElement(namespace = "http://www.dmg.org/PMML-4_1")
protected BinarySimilarity binarySimilarity;
@XmlAttribute
protected COMPAREFUNCTION compareFunction;
@XmlAttribute(required = true)
protected String kind;
@XmlAttribute
protected Double maximum;
@XmlAttribute
protected Double minimum;
/**
* 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
* {@link Extension }
*
*
*/
public List getExtension() {
if (extension == null) {
extension = new ArrayList();
}
return this.extension;
}
/**
* Gets the value of the euclidean property.
*
* @return
* possible object is
* {@link Euclidean }
*
*/
public Euclidean getEuclidean() {
return euclidean;
}
/**
* Sets the value of the euclidean property.
*
* @param value
* allowed object is
* {@link Euclidean }
*
*/
public void setEuclidean(Euclidean value) {
this.euclidean = value;
}
/**
* Gets the value of the squaredEuclidean property.
*
* @return
* possible object is
* {@link SquaredEuclidean }
*
*/
public SquaredEuclidean getSquaredEuclidean() {
return squaredEuclidean;
}
/**
* Sets the value of the squaredEuclidean property.
*
* @param value
* allowed object is
* {@link SquaredEuclidean }
*
*/
public void setSquaredEuclidean(SquaredEuclidean value) {
this.squaredEuclidean = value;
}
/**
* Gets the value of the chebychev property.
*
* @return
* possible object is
* {@link Chebychev }
*
*/
public Chebychev getChebychev() {
return chebychev;
}
/**
* Sets the value of the chebychev property.
*
* @param value
* allowed object is
* {@link Chebychev }
*
*/
public void setChebychev(Chebychev value) {
this.chebychev = value;
}
/**
* Gets the value of the cityBlock property.
*
* @return
* possible object is
* {@link CityBlock }
*
*/
public CityBlock getCityBlock() {
return cityBlock;
}
/**
* Sets the value of the cityBlock property.
*
* @param value
* allowed object is
* {@link CityBlock }
*
*/
public void setCityBlock(CityBlock value) {
this.cityBlock = value;
}
/**
* Gets the value of the minkowski property.
*
* @return
* possible object is
* {@link Minkowski }
*
*/
public Minkowski getMinkowski() {
return minkowski;
}
/**
* Sets the value of the minkowski property.
*
* @param value
* allowed object is
* {@link Minkowski }
*
*/
public void setMinkowski(Minkowski value) {
this.minkowski = value;
}
/**
* Gets the value of the simpleMatching property.
*
* @return
* possible object is
* {@link SimpleMatching }
*
*/
public SimpleMatching getSimpleMatching() {
return simpleMatching;
}
/**
* Sets the value of the simpleMatching property.
*
* @param value
* allowed object is
* {@link SimpleMatching }
*
*/
public void setSimpleMatching(SimpleMatching value) {
this.simpleMatching = value;
}
/**
* Gets the value of the jaccard property.
*
* @return
* possible object is
* {@link Jaccard }
*
*/
public Jaccard getJaccard() {
return jaccard;
}
/**
* Sets the value of the jaccard property.
*
* @param value
* allowed object is
* {@link Jaccard }
*
*/
public void setJaccard(Jaccard value) {
this.jaccard = value;
}
/**
* Gets the value of the tanimoto property.
*
* @return
* possible object is
* {@link Tanimoto }
*
*/
public Tanimoto getTanimoto() {
return tanimoto;
}
/**
* Sets the value of the tanimoto property.
*
* @param value
* allowed object is
* {@link Tanimoto }
*
*/
public void setTanimoto(Tanimoto value) {
this.tanimoto = value;
}
/**
* Gets the value of the binarySimilarity property.
*
* @return
* possible object is
* {@link BinarySimilarity }
*
*/
public BinarySimilarity getBinarySimilarity() {
return binarySimilarity;
}
/**
* Sets the value of the binarySimilarity property.
*
* @param value
* allowed object is
* {@link BinarySimilarity }
*
*/
public void setBinarySimilarity(BinarySimilarity value) {
this.binarySimilarity = value;
}
/**
* Gets the value of the compareFunction property.
*
* @return
* possible object is
* {@link COMPAREFUNCTION }
*
*/
public COMPAREFUNCTION getCompareFunction() {
if (compareFunction == null) {
return COMPAREFUNCTION.ABS_DIFF;
} else {
return compareFunction;
}
}
/**
* Sets the value of the compareFunction property.
*
* @param value
* allowed object is
* {@link COMPAREFUNCTION }
*
*/
public void setCompareFunction(COMPAREFUNCTION value) {
this.compareFunction = value;
}
/**
* Gets the value of the kind property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getKind() {
return kind;
}
/**
* Sets the value of the kind property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setKind(String value) {
this.kind = value;
}
/**
* Gets the value of the maximum property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getMaximum() {
return maximum;
}
/**
* Sets the value of the maximum property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setMaximum(Double value) {
this.maximum = value;
}
/**
* Gets the value of the minimum property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getMinimum() {
return minimum;
}
/**
* Sets the value of the minimum property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setMinimum(Double value) {
this.minimum = value;
}
}