public class Matrix extends PMMLObject
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">
<choice minOccurs="0">
<group ref="{http://www.dmg.org/PMML-4_2}NUM-ARRAY" maxOccurs="unbounded"/>
<element ref="{http://www.dmg.org/PMML-4_2}MatCell" maxOccurs="unbounded"/>
</choice>
<attribute name="kind" default="any">
<simpleType>
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="diagonal"/>
<enumeration value="symmetric"/>
<enumeration value="any"/>
</restriction>
</simpleType>
</attribute>
<attribute name="nbRows" type="{http://www.dmg.org/PMML-4_2}INT-NUMBER" />
<attribute name="nbCols" type="{http://www.dmg.org/PMML-4_2}INT-NUMBER" />
<attribute name="diagDefault" type="{http://www.dmg.org/PMML-4_2}REAL-NUMBER" />
<attribute name="offDiagDefault" type="{http://www.dmg.org/PMML-4_2}REAL-NUMBER" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Class and Description |
|---|---|
static class |
Matrix.Kind
Java class for null.
|
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<Array> |
arrays |
protected java.lang.Double |
diagDefault |
protected Matrix.Kind |
kind |
protected java.util.List<MatCell> |
matCells |
protected java.lang.Integer |
nbCols |
protected java.lang.Integer |
nbRows |
protected java.lang.Double |
offDiagDefault |
| Constructor and Description |
|---|
Matrix() |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
java.util.List<Array> |
getArrays()
Gets the value of the arrays property.
|
java.lang.Double |
getDiagDefault()
Gets the value of the diagDefault property.
|
Matrix.Kind |
getKind()
Gets the value of the kind property.
|
java.util.List<MatCell> |
getMatCells()
Gets the value of the matCells property.
|
java.lang.Integer |
getNbCols()
Gets the value of the nbCols property.
|
java.lang.Integer |
getNbRows()
Gets the value of the nbRows property.
|
java.lang.Double |
getOffDiagDefault()
Gets the value of the offDiagDefault property.
|
boolean |
hasArrays() |
boolean |
hasMatCells() |
void |
setDiagDefault(java.lang.Double value)
Sets the value of the diagDefault property.
|
void |
setKind(Matrix.Kind value)
Sets the value of the kind property.
|
void |
setNbCols(java.lang.Integer value)
Sets the value of the nbCols property.
|
void |
setNbRows(java.lang.Integer value)
Sets the value of the nbRows property.
|
void |
setOffDiagDefault(java.lang.Double value)
Sets the value of the offDiagDefault property.
|
Matrix |
withArrays(Array... values) |
Matrix |
withArrays(java.util.Collection<Array> values) |
Matrix |
withDiagDefault(java.lang.Double value) |
Matrix |
withKind(Matrix.Kind value) |
Matrix |
withMatCells(java.util.Collection<MatCell> values) |
Matrix |
withMatCells(MatCell... values) |
Matrix |
withNbCols(java.lang.Integer value) |
Matrix |
withNbRows(java.lang.Integer value) |
Matrix |
withOffDiagDefault(java.lang.Double value) |
getLocator, setLocatorprotected Matrix.Kind kind
protected java.lang.Integer nbRows
protected java.lang.Integer nbCols
protected java.lang.Double diagDefault
protected java.lang.Double offDiagDefault
protected java.util.List<Array> arrays
protected java.util.List<MatCell> matCells
public Matrix.Kind getKind()
Matrix.Kindpublic void setKind(Matrix.Kind value)
value - allowed object is
Matrix.Kindpublic java.lang.Integer getNbRows()
Stringpublic void setNbRows(java.lang.Integer value)
value - allowed object is
Stringpublic java.lang.Integer getNbCols()
Stringpublic void setNbCols(java.lang.Integer value)
value - allowed object is
Stringpublic java.lang.Double getDiagDefault()
Doublepublic void setDiagDefault(java.lang.Double value)
value - allowed object is
Doublepublic java.lang.Double getOffDiagDefault()
Doublepublic void setOffDiagDefault(java.lang.Double value)
value - allowed object is
Doublepublic java.util.List<Array> getArrays()
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 arrays property.
For example, to add a new item, do as follows:
getArrays().add(newItem);
Objects of the following type(s) are allowed in the list
Array
public java.util.List<MatCell> getMatCells()
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 matCells property.
For example, to add a new item, do as follows:
getMatCells().add(newItem);
Objects of the following type(s) are allowed in the list
MatCell
public Matrix withKind(Matrix.Kind value)
public Matrix withNbRows(java.lang.Integer value)
public Matrix withNbCols(java.lang.Integer value)
public Matrix withDiagDefault(java.lang.Double value)
public Matrix withOffDiagDefault(java.lang.Double value)
public boolean hasArrays()
public boolean hasMatCells()
public VisitorAction accept(Visitor visitor)
Copyright © 2015 University of Tartu. All Rights Reserved.