|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttpp.Series
public class Series
Represents a set of series in the data. A series is defined by two attributes: the id attribute which identifies members of the series (which may be nominal or string); and the index attribute which orders them (which may be real or nominal or date). The id attribute may be null, in which case it is assumed that the data comprises a single series ordered by the index attribute.
Constructor Summary | |
---|---|
Series(Instances ins,
Attribute indexAttribute,
Attribute idAttribute)
|
|
Series(Instances ins,
java.lang.String indexAttributeName,
java.lang.String idAttributeName)
Create a series given just the names of the two attributes. |
Method Summary | |
---|---|
java.util.HashMap<java.lang.String,java.util.TreeSet<Instance>> |
getAllSeries()
The series themselves. |
Attribute |
getIdAttribute()
|
Attribute |
getIndexAttribute()
|
Instance |
next(Instance in)
Find the instance after this one in whichever series it is a member of. |
int |
next(int i)
Find the index of the next instance, given the index of an instance. |
Instance |
previous(Instance in)
Find the instance before this one in whichever series it is a member of. |
int |
previous(int i)
Find the index of the previous instance, given the index of an instance. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Series(Instances ins, java.lang.String indexAttributeName, java.lang.String idAttributeName) throws TPPException
TPPException
- if indexAttribute cannot be recognisedpublic Series(Instances ins, Attribute indexAttribute, Attribute idAttribute)
Method Detail |
---|
public java.util.HashMap<java.lang.String,java.util.TreeSet<Instance>> getAllSeries()
public Attribute getIdAttribute()
public Attribute getIndexAttribute()
public java.lang.String toString()
toString
in class java.lang.Object
public Instance previous(Instance in)
public Instance next(Instance in)
public int previous(int i)
TPPException
public int next(int i)
TPPException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |