Class POSSampleSequenceStream
A ISequenceStream<T> over POSSamples.
public class POSSampleSequenceStream : ObjectStreamBase<Sequence<POSSample>?>, ISequenceStream<POSSample>, IObjectStream<Sequence<POSSample>?>, IDisposable
- Inheritance
-
POSSampleSequenceStream
- Implements
- Inherited Members
Constructors
POSSampleSequenceStream(IObjectStream<POSSample?>)
public POSSampleSequenceStream(IObjectStream<POSSample?> psi)
Parameters
psiIObjectStream<POSSample>
Exceptions
- IOException
if there is an error during reading
POSSampleSequenceStream(IObjectStream<POSSample?>, IPOSContextGenerator)
public POSSampleSequenceStream(IObjectStream<POSSample?> psi, IPOSContextGenerator pcg)
Parameters
psiIObjectStream<POSSample>pcgIPOSContextGenerator
Exceptions
- IOException
if there is an error during reading
Methods
Dispose(bool)
Releases the resources from this object stream.
protected override void Dispose(bool disposing)
Parameters
disposingbool
Read()
Returns the next object. Calling this method repeatedly until it returns
null will return each object from the underlying source exactly once.
public override Sequence<POSSample>? Read()
Returns
Exceptions
- IOException
if there is an error during reading
- IOException
if there is an error during reading
Reset()
Repositions the stream at the beginning and the previously seen object sequence will be repeated exactly. This method can be used to re-read the stream if multiple passes over the objects are required.
The implementation of this method is optional.
public override void Reset()
Exceptions
- IOException
if there is an error during resetting the stream
- NotSupportedException
if reset is not supported on this stream
- IOException
if there is an error during reading
UpdateContext(Sequence<POSSample>, AbstractModel)
Creates a new event array based on the outcomes predicted by the specified parameters for the specified sequence.
public virtual Event[] UpdateContext(Sequence<POSSample> sequence, AbstractModel model)
Parameters
sequenceSequence<POSSample>The sequence to be evaluated.
modelAbstractModelThe model to use for the evaluation.
Returns
- Event[]
event array