Package org.datavec.api.records.impl
Class SequenceRecord
- java.lang.Object
-
- org.datavec.api.records.impl.SequenceRecord
-
- All Implemented Interfaces:
Serializable,SequenceRecord
public class SequenceRecord extends Object implements SequenceRecord
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SequenceRecord()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetSequenceLength()Get the overall length of the sequence record (number of time/sequence steps, etc).List<Writable>getTimeStep(int timeStep)Get a single time step.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.datavec.api.records.SequenceRecord
getMetaData, getSequenceRecord, setMetaData, setSequenceRecord
-
-
-
-
Method Detail
-
getSequenceLength
public int getSequenceLength()
Description copied from interface:SequenceRecordGet the overall length of the sequence record (number of time/sequence steps, etc). Equivalent togetSequenceRecord().size()- Specified by:
getSequenceLengthin interfaceSequenceRecord- Returns:
- Length of sequence record
-
getTimeStep
public List<Writable> getTimeStep(int timeStep)
Description copied from interface:SequenceRecordGet a single time step. Equivalent togetSequenceRecord().get(timeStep)- Specified by:
getTimeStepin interfaceSequenceRecord- Parameters:
timeStep- Time step to get. Must be0 <= timeStep < getSequenceLength()- Returns:
- Values for a single time step
-
-