Class ReproducibleInterpolator<T>
Defines a reproducible stream interpolator with the same input and output type.
Inherited Members
Namespace: Microsoft.Psi
Assembly: Microsoft.Psi.dll
Syntax
public abstract class ReproducibleInterpolator<T> : Interpolator<T>
Type Parameters
Name | Description |
---|---|
T | The type of the input messages and of the result. |
Remarks
Reproducible interpolators produce results that do not depend on the wall-clock time of message arrival on a stream, i.e., they are based on originating times of messages. As a result, these interpolators might introduce extra delays as they might have to wait for enough messages on the secondary stream to prove that the interpolation result is correct, irrespective of any other messages that might arrive later.
Operators
View SourceImplicit(RelativeTimeInterval to ReproducibleInterpolator<T>)
Implicitly convert relative time intervals to the equivalent of a reproducible nearest match within that window.
Declaration
public static implicit operator ReproducibleInterpolator<T>(RelativeTimeInterval window)
Parameters
Type | Name | Description |
---|---|---|
RelativeTimeInterval | window | Window within which to match messages. |
Returns
Type | Description |
---|---|
ReproducibleInterpolator<T> |
Implicit(TimeSpan to ReproducibleInterpolator<T>)
Implicitly convert timespan to the equivalent of a reproducible nearest match with that tolerance.
Declaration
public static implicit operator ReproducibleInterpolator<T>(TimeSpan tolerance)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | tolerance | Relative window tolerance within which to match messages. |
Returns
Type | Description |
---|---|
ReproducibleInterpolator<T> |