Class Reproducible
Collection of reproducible interpolators.
Inheritance
Namespace: Microsoft.Psi
Assembly: Microsoft.Psi.dll
Syntax
public static class Reproducible : object
Methods
View SourceExact<T>()
Reproducible interpolator that selects the value with an originating time exactly matching the interpolation time.
Declaration
public static ReproducibleInterpolator<T> Exact<T>()
Returns
Type | Description |
---|---|
Reproducible |
The reproducible interpolator. |
Type Parameters
Name | Description |
---|---|
T | The message type. |
ExactOrDefault<T>(T)
Reproducible interpolator that selects the value with an originating time exactly matching the interpolation time, or default if no such value is found.
Declaration
public static ReproducibleInterpolator<T> ExactOrDefault<T>(T defaultValue = null)
Parameters
Type | Name | Description |
---|---|---|
T | defaultValue | An optional default value to use. |
Returns
Type | Description |
---|---|
Reproducible |
The reproducible interpolator. |
Type Parameters
Name | Description |
---|---|
T | The message type. |
First<T>()
Reproducible interpolator that selects the first value in the stream.
Declaration
public static ReproducibleInterpolator<T> First<T>()
Returns
Type | Description |
---|---|
Reproducible |
The reproducible interpolator. |
Type Parameters
Name | Description |
---|---|
T | The message type. |
First<T>(RelativeTimeInterval)
Reproducible interpolator that selects the first value within a specified Relative
Declaration
public static ReproducibleInterpolator<T> First<T>(RelativeTimeInterval relativeTimeInterval)
Parameters
Type | Name | Description |
---|---|---|
Relative |
relativeTimeInterval | The relative time interval within which to search for the first message. |
Returns
Type | Description |
---|---|
Reproducible |
The reproducible interpolator. |
Type Parameters
Name | Description |
---|---|
T | The message type. |
First<T>(TimeSpan)
Reproducible interpolator that selects the first value within a specified time tolerance.
Declaration
public static ReproducibleInterpolator<T> First<T>(TimeSpan tolerance)
Parameters
Type | Name | Description |
---|---|---|
Time |
tolerance | The tolerance within which to search for the first message. |
Returns
Type | Description |
---|---|
Reproducible |
The reproducible interpolator. |
Type Parameters
Name | Description |
---|---|
T | The message type. |
FirstOrDefault<T>(T)
Reproducible interpolator that selects the first value in the stream, or default if no such value is found.
Declaration
public static ReproducibleInterpolator<T> FirstOrDefault<T>(T defaultValue = null)
Parameters
Type | Name | Description |
---|---|---|
T | defaultValue | An optional default value to use. |
Returns
Type | Description |
---|---|
Reproducible |
The reproducible interpolator. |
Type Parameters
Name | Description |
---|---|
T | The message type. |
FirstOrDefault<T>(RelativeTimeInterval, T)
Reproducible interpolator that selects the first value within a specified Relative
Declaration
public static ReproducibleInterpolator<T> FirstOrDefault<T>(RelativeTimeInterval relativeTimeInterval, T defaultValue = null)
Parameters
Type | Name | Description |
---|---|---|
Relative |
relativeTimeInterval | The relative time interval within which to search for the first message. |
T | defaultValue | An optional default value to use. |
Returns
Type | Description |
---|---|
Reproducible |
The reproducible interpolator. |
Type Parameters
Name | Description |
---|---|
T | The message type. |
FirstOrDefault<T>(TimeSpan, T)
Reproducible interpolator that selects the first value within a specified time tolerance, or default if no such value is found.
Declaration
public static ReproducibleInterpolator<T> FirstOrDefault<T>(TimeSpan tolerance, T defaultValue = null)
Parameters
Type | Name | Description |
---|---|---|
Time |
tolerance | The tolerance within which to search for the first message. |
T | defaultValue | An optional default value to use. |
Returns
Type | Description |
---|---|
Reproducible |
The reproducible interpolator. |
Type Parameters
Name | Description |
---|---|
T | The message type. |
Last<T>()
Reproducible interpolator that selects the last value in the stream.
Declaration
public static ReproducibleInterpolator<T> Last<T>()
Returns
Type | Description |
---|---|
Reproducible |
The reproducible interpolator. |
Type Parameters
Name | Description |
---|---|
T | The message type. |
Last<T>(RelativeTimeInterval)
Reproducible interpolator that selects the last value within a specified Relative
Declaration
public static ReproducibleInterpolator<T> Last<T>(RelativeTimeInterval relativeTimeInterval)
Parameters
Type | Name | Description |
---|---|---|
Relative |
relativeTimeInterval | The relative time interval within which to search for the last message. |
Returns
Type | Description |
---|---|
Reproducible |
The reproducible interpolator. |
Type Parameters
Name | Description |
---|---|
T | The message type. |
Last<T>(TimeSpan)
Reproducible interpolator that selects the first value within a specified time tolerance.
Declaration
public static ReproducibleInterpolator<T> Last<T>(TimeSpan tolerance)
Parameters
Type | Name | Description |
---|---|---|
Time |
tolerance | The tolerance within which to search for the last message. |
Returns
Type | Description |
---|---|
Reproducible |
The reproducible interpolator. |
Type Parameters
Name | Description |
---|---|
T | The message type. |
LastOrDefault<T>(T)
Reproducible interpolator that selects the last value in the stream, or default if no such value is found.
Declaration
public static ReproducibleInterpolator<T> LastOrDefault<T>(T defaultValue = null)
Parameters
Type | Name | Description |
---|---|---|
T | defaultValue | An optional default value to use. |
Returns
Type | Description |
---|---|
Reproducible |
The reproducible interpolator. |
Type Parameters
Name | Description |
---|---|
T | The message type. |
LastOrDefault<T>(RelativeTimeInterval, T)
Reproducible interpolator that selects the last value within a specified Relative
Declaration
public static ReproducibleInterpolator<T> LastOrDefault<T>(RelativeTimeInterval relativeTimeInterval, T defaultValue = null)
Parameters
Type | Name | Description |
---|---|---|
Relative |
relativeTimeInterval | The relative time interval within which to search for the last message. |
T | defaultValue | An optional default value to use. |
Returns
Type | Description |
---|---|
Reproducible |
The reproducible interpolator. |
Type Parameters
Name | Description |
---|---|
T | The message type. |
LastOrDefault<T>(TimeSpan, T)
Reproducible interpolator that selects the first value within a specified time tolerance, or default if no such value is found.
Declaration
public static ReproducibleInterpolator<T> LastOrDefault<T>(TimeSpan tolerance, T defaultValue = null)
Parameters
Type | Name | Description |
---|---|---|
Time |
tolerance | The tolerance within which to search for the last message. |
T | defaultValue | An optional default value to use. |
Returns
Type | Description |
---|---|
Reproducible |
The reproducible interpolator. |
Type Parameters
Name | Description |
---|---|
T | The message type. |
Linear()
Reproducible interpolator that performs a linear interpolation, between the nearest messages to the originating time.
Declaration
public static AdjacentValuesInterpolator<double, double> Linear()
Returns
Type | Description |
---|---|
Adjacent |
The linear interpolator. |
Nearest<T>()
Reproducible interpolator that selects the value with an originating time nearest to the interpolation time.
Declaration
public static ReproducibleInterpolator<T> Nearest<T>()
Returns
Type | Description |
---|---|
Reproducible |
The reproducible interpolator. |
Type Parameters
Name | Description |
---|---|
T | The message type. |
Nearest<T>(RelativeTimeInterval)
Reproducible interpolator that selects the value with an originating time nearest to the interpolation time,
within a specified Relative
Declaration
public static ReproducibleInterpolator<T> Nearest<T>(RelativeTimeInterval relativeTimeInterval)
Parameters
Type | Name | Description |
---|---|---|
Relative |
relativeTimeInterval | The relative time interval within which to search for the nearest message. |
Returns
Type | Description |
---|---|
Reproducible |
The reproducible interpolator. |
Type Parameters
Name | Description |
---|---|
T | The message type. |
Nearest<T>(TimeSpan)
Reproducible interpolator that selects the value with an originating time nearest to the interpolation time, within a given tolerance.
Declaration
public static ReproducibleInterpolator<T> Nearest<T>(TimeSpan tolerance)
Parameters
Type | Name | Description |
---|---|---|
Time |
tolerance | The tolerance within which to search for the nearest message. |
Returns
Type | Description |
---|---|
Reproducible |
The reproducible interpolator. |
Type Parameters
Name | Description |
---|---|
T | The message type. |
NearestOrDefault<T>(T)
Reproducible interpolator that selects the value with an originating time nearest to the interpolation time, or default if no such value is found.
Declaration
public static ReproducibleInterpolator<T> NearestOrDefault<T>(T defaultValue = null)
Parameters
Type | Name | Description |
---|---|---|
T | defaultValue | An optional default value to use. |
Returns
Type | Description |
---|---|
Reproducible |
The reproducible interpolator. |
Type Parameters
Name | Description |
---|---|
T | The message type. |
NearestOrDefault<T>(RelativeTimeInterval, T)
Reproducible interpolator that selects the value with an originating time nearest to the interpolation time,
within a specified Relative
Declaration
public static ReproducibleInterpolator<T> NearestOrDefault<T>(RelativeTimeInterval relativeTimeInterval, T defaultValue = null)
Parameters
Type | Name | Description |
---|---|---|
Relative |
relativeTimeInterval | The relative time interval within which to search for the nearest message. |
T | defaultValue | An optional default value to use. |
Returns
Type | Description |
---|---|
Reproducible |
The reproducible interpolator. |
Type Parameters
Name | Description |
---|---|
T | The message type. |
NearestOrDefault<T>(TimeSpan, T)
Reproducible interpolator that selects the value with an originating time nearest to the interpolation time, within a given tolerance, or default if no such value is found.
Declaration
public static ReproducibleInterpolator<T> NearestOrDefault<T>(TimeSpan tolerance, T defaultValue = null)
Parameters
Type | Name | Description |
---|---|---|
Time |
tolerance | The tolerance within which to search for the nearest message. |
T | defaultValue | An optional default value to use. |
Returns
Type | Description |
---|---|
Reproducible |
The reproducible interpolator. |
Type Parameters
Name | Description |
---|---|
T | The message type. |