public class ComparisonMeasure extends PMMLObject implements com.sun.xml.bind.Locatable
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_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="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_1}COMPARE-FUNCTION" default="absDiff" />
<attribute name="minimum" type="{http://www.dmg.org/PMML-4_1}NUMBER" />
<attribute name="maximum" type="{http://www.dmg.org/PMML-4_1}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()
Deprecated.
|
ComparisonMeasure(ComparisonMeasure.Kind kind) |
| Modifier and Type | Method and Description |
|---|---|
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() |
protected Measure measure
protected ComparisonMeasure.Kind kind
protected CompareFunctionType compareFunction
protected Double minimum
protected Double maximum
protected Locator locator
@Deprecated 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
public 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 Locator sourceLocation()
sourceLocation in interface com.sun.xml.bind.LocatablesourceLocation in class PMMLObjectpublic void setSourceLocation(Locator newLocator)
setSourceLocation in class PMMLObjectCopyright © 2013 University of Tartu. All Rights Reserved.