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.
|
| Constructor and Description |
|---|
ComparisonMeasure() |
ComparisonMeasure(ComparisonMeasure.Kind kind) |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
ComparisonMeasure |
addExtensions(Extension... extensions) |
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.
|
boolean |
hasExtensions() |
ComparisonMeasure |
setCompareFunction(CompareFunctionType compareFunction)
Sets the value of the compareFunction property.
|
ComparisonMeasure |
setKind(ComparisonMeasure.Kind kind)
Sets the value of the kind property.
|
ComparisonMeasure |
setMaximum(Double maximum)
Sets the value of the maximum property.
|
ComparisonMeasure |
setMeasure(Measure measure)
Sets the value of the measure property.
|
ComparisonMeasure |
setMinimum(Double minimum)
Sets the value of the minimum property.
|
getLocator, setLocatorpublic ComparisonMeasure()
public ComparisonMeasure(ComparisonMeasure.Kind kind)
public ComparisonMeasure.Kind getKind()
ComparisonMeasure.Kindpublic ComparisonMeasure setKind(ComparisonMeasure.Kind kind)
kind - allowed object is
ComparisonMeasure.Kindpublic CompareFunctionType getCompareFunction()
CompareFunctionTypepublic ComparisonMeasure setCompareFunction(CompareFunctionType compareFunction)
compareFunction - allowed object is
CompareFunctionTypepublic Double getMinimum()
Doublepublic ComparisonMeasure setMinimum(Double minimum)
minimum - allowed object is
Doublepublic Double getMaximum()
Doublepublic ComparisonMeasure setMaximum(Double maximum)
maximum - allowed object is
Doublepublic 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 ComparisonMeasure setMeasure(Measure measure)
measure - allowed object is
Euclidean
SquaredEuclidean
Chebychev
CityBlock
Minkowski
SimpleMatching
Jaccard
Tanimoto
BinarySimilaritypublic boolean hasExtensions()
hasExtensions in interface HasExtensionspublic ComparisonMeasure addExtensions(Extension... extensions)
public VisitorAction accept(Visitor visitor)
Copyright © 2016 University of Tartu. All Rights Reserved.