public final class CategoricalModel extends Object
Categorical Model.
Modifier and Type | Method and Description |
---|---|
CategoricalAttribute |
addAttribute()
Add a new categorical attribute.
|
static CategoricalModel |
create()
Factory method to construct a categorical model.
|
Iterable<CategoricalAttribute> |
getAttributes()
Get the collection of CategoricalAttribute.
|
int |
indexOf(CategoricalValue value)
Get the index of the CategoricalValue.
|
int |
sizeAttributes()
Get the number of attributes.
|
int |
sizeValues()
Get the number of attributes.
|
int |
startIndex(CategoricalAttribute attribute)
Get the startIndex index of this attribute in its model.
|
String |
toString()
Returns a string representation of the object.
|
public static CategoricalModel create()
Factory method to construct a categorical model.
public CategoricalAttribute addAttribute()
Add a new categorical attribute.
public Iterable<CategoricalAttribute> getAttributes()
Get the collection of CategoricalAttribute.
public int sizeAttributes()
Get the number of attributes.
public int sizeValues()
Get the number of attributes.
public int indexOf(CategoricalValue value)
Get the index of the CategoricalValue.
value
- CategoricalValuepublic int startIndex(CategoricalAttribute attribute)
Get the startIndex index of this attribute in its model.
attribute
- CategoricalAttributeCopyright © 2010–2016 The Galactic Organization. All rights reserved.