public class ComparisonMeasure extends PMMLObject 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"/>
<choice>
<element ref="{http://www.dmg.org/PMML-4_2}euclidean"/>
<element ref="{http://www.dmg.org/PMML-4_2}squaredEuclidean"/>
<element ref="{http://www.dmg.org/PMML-4_2}chebychev"/>
<element ref="{http://www.dmg.org/PMML-4_2}cityBlock"/>
<element ref="{http://www.dmg.org/PMML-4_2}minkowski"/>
<element ref="{http://www.dmg.org/PMML-4_2}simpleMatching"/>
<element ref="{http://www.dmg.org/PMML-4_2}jaccard"/>
<element ref="{http://www.dmg.org/PMML-4_2}tanimoto"/>
<element ref="{http://www.dmg.org/PMML-4_2}binarySimilarity"/>
</choice>
</sequence>
<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="compareFunction" type="{http://www.dmg.org/PMML-4_2}COMPARE-FUNCTION" default="absDiff" />
<attribute name="minimum" type="{http://www.dmg.org/PMML-4_2}NUMBER" />
<attribute name="maximum" type="{http://www.dmg.org/PMML-4_2}NUMBER" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Class and Description |
|---|---|
static class |
ComparisonMeasure.Kind
Java class for null.
|
| Modifier and Type | Field and Description |
|---|---|
protected CompareFunctionType |
compareFunction |
protected java.util.List<Extension> |
extensions |
protected ComparisonMeasure.Kind |
kind |
protected java.lang.Double |
maximum |
protected Measure |
measure |
protected java.lang.Double |
minimum |
| Constructor and Description |
|---|
ComparisonMeasure() |
ComparisonMeasure(ComparisonMeasure.Kind kind) |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
CompareFunctionType |
getCompareFunction()
Gets the value of the compareFunction property.
|
java.util.List<Extension> |
getExtensions()
Gets the value of the extensions property.
|
ComparisonMeasure.Kind |
getKind()
Gets the value of the kind property.
|
java.lang.Double |
getMaximum()
Gets the value of the maximum property.
|
Measure |
getMeasure()
Gets the value of the measure property.
|
java.lang.Double |
getMinimum()
Gets the value of the minimum property.
|
boolean |
hasExtensions() |
void |
setCompareFunction(CompareFunctionType value)
Sets the value of the compareFunction property.
|
void |
setKind(ComparisonMeasure.Kind value)
Sets the value of the kind property.
|
void |
setMaximum(java.lang.Double value)
Sets the value of the maximum property.
|
void |
setMeasure(Measure value)
Sets the value of the measure property.
|
void |
setMinimum(java.lang.Double value)
Sets the value of the minimum property.
|
ComparisonMeasure |
withCompareFunction(CompareFunctionType value) |
ComparisonMeasure |
withExtensions(java.util.Collection<Extension> values) |
ComparisonMeasure |
withExtensions(Extension... values) |
ComparisonMeasure |
withKind(ComparisonMeasure.Kind value) |
ComparisonMeasure |
withMaximum(java.lang.Double value) |
ComparisonMeasure |
withMeasure(Measure value) |
ComparisonMeasure |
withMinimum(java.lang.Double value) |
getLocator, setLocatorprotected ComparisonMeasure.Kind kind
protected CompareFunctionType compareFunction
protected java.lang.Double minimum
protected java.lang.Double maximum
protected java.util.List<Extension> extensions
protected Measure measure
public ComparisonMeasure()
public ComparisonMeasure(ComparisonMeasure.Kind kind)
public ComparisonMeasure.Kind getKind()
ComparisonMeasure.Kindpublic void setKind(ComparisonMeasure.Kind value)
value - allowed object is
ComparisonMeasure.Kindpublic CompareFunctionType getCompareFunction()
CompareFunctionTypepublic void setCompareFunction(CompareFunctionType value)
value - allowed object is
CompareFunctionTypepublic java.lang.Double getMinimum()
Doublepublic void setMinimum(java.lang.Double value)
value - allowed object is
Doublepublic java.lang.Double getMaximum()
Doublepublic void setMaximum(java.lang.Double value)
value - allowed object is
Doublepublic 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 Measure getMeasure()
Euclidean
SquaredEuclidean
Chebychev
CityBlock
Minkowski
SimpleMatching
Jaccard
Tanimoto
BinarySimilaritypublic void setMeasure(Measure value)
value - allowed object is
Euclidean
SquaredEuclidean
Chebychev
CityBlock
Minkowski
SimpleMatching
Jaccard
Tanimoto
BinarySimilaritypublic ComparisonMeasure withKind(ComparisonMeasure.Kind value)
public ComparisonMeasure withCompareFunction(CompareFunctionType value)
public ComparisonMeasure withMinimum(java.lang.Double value)
public ComparisonMeasure withMaximum(java.lang.Double value)
public ComparisonMeasure withExtensions(Extension... values)
public ComparisonMeasure withExtensions(java.util.Collection<Extension> values)
public ComparisonMeasure withMeasure(Measure value)
public boolean hasExtensions()
hasExtensions in interface HasExtensionspublic VisitorAction accept(Visitor visitor)
Copyright © 2015 University of Tartu. All Rights Reserved.