Class InstanceSequence
- java.lang.Object
-
- edu.gsu.cs.dmlab.solgrind.base.types.instance.InstanceSequence
-
- Direct Known Subclasses:
TwoSequence
public class InstanceSequence extends Object
- Author:
- Berkay Aydin, Data Mining Lab, Georgia State University
-
-
Field Summary
Fields Modifier and Type Field Description protected List<InstanceData>
sequenceData
-
Constructor Summary
Constructors Constructor Description InstanceSequence()
InstanceSequence(InstanceData data)
InstanceSequence(List<InstanceData> data)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
append(InstanceData instanceData)
InstanceSequence
appendAndCreate(InstanceData iData)
static InstanceSequence
createInstanceSequence(List<Instance> instances)
boolean
equals(InstanceSequence other)
double
getChainIndex()
String
getChainIndexType()
EventSequence
getEventSequenceType()
InstanceData
getLast()
int
getLength()
List<InstanceData>
getSequenceData()
InstanceSequence
getSubsequence(int from, int to)
Returns an InstanceSequence of the portion of this InstanceSequence between the specified fromIndex (from), inclusive, and toIndex (to), exclusive.int
hashCode()
void
setChainIndex(double ci)
void
setChainIndexType(String ciType)
String
toString()
-
-
-
Field Detail
-
sequenceData
protected List<InstanceData> sequenceData
-
-
Constructor Detail
-
InstanceSequence
public InstanceSequence()
-
InstanceSequence
public InstanceSequence(InstanceData data)
-
InstanceSequence
public InstanceSequence(List<InstanceData> data)
-
-
Method Detail
-
createInstanceSequence
public static InstanceSequence createInstanceSequence(List<Instance> instances)
-
getEventSequenceType
public EventSequence getEventSequenceType()
-
append
public void append(InstanceData instanceData)
-
appendAndCreate
public InstanceSequence appendAndCreate(InstanceData iData)
-
getLast
public InstanceData getLast()
-
setChainIndex
public void setChainIndex(double ci)
-
getChainIndex
public double getChainIndex()
-
getLength
public int getLength()
-
setChainIndexType
public void setChainIndexType(String ciType)
-
getChainIndexType
public String getChainIndexType()
-
getSubsequence
public InstanceSequence getSubsequence(int from, int to)
Returns an InstanceSequence of the portion of this InstanceSequence between the specified fromIndex (from), inclusive, and toIndex (to), exclusive. (If fromIndex and toIndex are equal, the returned list is empty.)- Parameters:
from
-to
-- Returns:
-
getSequenceData
public List<InstanceData> getSequenceData()
-
equals
public boolean equals(InstanceSequence other)
-
-