public class RealSparseArray extends SparseArray<Double>
Java class for REAL-SparseArray element declaration.
The following schema fragment specifies the expected content contained within this class.
<element name="REAL-SparseArray">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element ref="{http://www.dmg.org/PMML-4_3}Indices" minOccurs="0"/>
<element ref="{http://www.dmg.org/PMML-4_3}REAL-Entries" minOccurs="0"/>
</sequence>
<attribute name="n" type="{http://www.dmg.org/PMML-4_3}INT-NUMBER" />
<attribute name="defaultValue" type="{http://www.dmg.org/PMML-4_3}REAL-NUMBER" default="0" />
</restriction>
</complexContent>
</complexType>
</element>
| Constructor and Description |
|---|
RealSparseArray() |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
RealSparseArray |
addEntries(Double... entries) |
RealSparseArray |
addIndices(Integer... indices) |
Double |
getDefaultValue()
Gets the value of the defaultValue property.
|
List<Double> |
getEntries()
Gets the value of the entries property.
|
List<Integer> |
getIndices()
Gets the value of the indices property.
|
Integer |
getN()
Gets the value of the n property.
|
boolean |
hasEntries() |
boolean |
hasIndices() |
RealSparseArray |
setDefaultValue(Double defaultValue)
Sets the value of the defaultValue property.
|
RealSparseArray |
setN(Integer n)
Sets the value of the n property.
|
getLocator, setLocator, traverse, traverse, traverse, traverse, traverseMixedpublic Integer getN()
getN in class SparseArray<Double>Integerpublic RealSparseArray setN(Integer n)
setN in class SparseArray<Double>n - allowed object is
Integerpublic Double getDefaultValue()
getDefaultValue in class SparseArray<Double>Doublepublic RealSparseArray setDefaultValue(Double defaultValue)
setDefaultValue in class SparseArray<Double>defaultValue - allowed object is
Doublepublic List<Integer> getIndices()
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 indices property.
For example, to add a new item, do as follows:
getIndices().add(newItem);
Objects of the following type(s) are allowed in the list
Integer
getIndices in class SparseArray<Double>public List<Double> getEntries()
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 entries property.
For example, to add a new item, do as follows:
getEntries().add(newItem);
Objects of the following type(s) are allowed in the list
Double
getEntries in class SparseArray<Double>public boolean hasIndices()
hasIndices in class SparseArray<Double>public RealSparseArray addIndices(Integer... indices)
public boolean hasEntries()
hasEntries in class SparseArray<Double>public RealSparseArray addEntries(Double... entries)
public VisitorAction accept(Visitor visitor)
Copyright © 2016 University of Tartu. All rights reserved.