public class ComparisonMeasure extends PMMLObject 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"/>
<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 List<Extension> |
extensions |
protected ComparisonMeasure.Kind |
kind |
protected Locator |
locator |
protected Double |
maximum |
protected Measure |
measure |
protected 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.
|
List<Extension> |
getExtensions()
Gets the value of the extensions property.
|
ComparisonMeasure.Kind |
getKind()
Gets the value of the kind property.
|
Double |
getMaximum()
Gets the value of the maximum property.
|
Measure |
getMeasure()
Gets the value of the measure property.
|
Double |
getMinimum()
Gets the value of the minimum property.
|
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(Double value)
Sets the value of the maximum property.
|
void |
setMeasure(Measure value)
Sets the value of the measure property.
|
void |
setMinimum(Double value)
Sets the value of the minimum property.
|
void |
setSourceLocation(Locator newLocator) |
Locator |
sourceLocation() |
ComparisonMeasure |
withCompareFunction(CompareFunctionType value) |
ComparisonMeasure |
withExtensions(Collection<Extension> values) |
ComparisonMeasure |
withExtensions(Extension... values) |
ComparisonMeasure |
withKind(ComparisonMeasure.Kind value) |
ComparisonMeasure |
withMaximum(Double value) |
ComparisonMeasure |
withMeasure(Measure value) |
ComparisonMeasure |
withMinimum(Double value) |
protected Measure measure
protected ComparisonMeasure.Kind kind
protected CompareFunctionType compareFunction
protected Double minimum
protected Double maximum
protected Locator locator
public ComparisonMeasure()
public ComparisonMeasure(ComparisonMeasure.Kind kind)
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 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.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 Double getMinimum()
Doublepublic void setMinimum(Double value)
value - allowed object is
Doublepublic Double getMaximum()
Doublepublic void setMaximum(Double value)
value - allowed object is
Doublepublic ComparisonMeasure withExtensions(Extension... values)
public ComparisonMeasure withExtensions(Collection<Extension> values)
public ComparisonMeasure withMeasure(Measure value)
public ComparisonMeasure withKind(ComparisonMeasure.Kind value)
public ComparisonMeasure withCompareFunction(CompareFunctionType value)
public ComparisonMeasure withMinimum(Double value)
public ComparisonMeasure withMaximum(Double value)
public Locator sourceLocation()
sourceLocation in interface com.sun.xml.bind.LocatablesourceLocation in class PMMLObjectpublic void setSourceLocation(Locator newLocator)
setSourceLocation in class PMMLObjectpublic VisitorAction accept(Visitor visitor)
Copyright © 2014 University of Tartu. All Rights Reserved.