SeriesExtensionsSample Method |
Name | Description | |
---|---|---|
SampleV(SeriesDateTime, V, TimeSpan) |
Finds values at, or near, the specified times in a given series. The operation generates
keys starting from the smallest key of the original series, using the specified `interval`
and then finds nearest smaller values close to such keys. The function generates samples
at, or just before the end of an interval and at, or after, the end of the series.
## Parameters
- `series` - An input series to be resampled
- `interval` - The interval between the individual samples
## Remarks
This operation is only supported on ordered series. The method throws
`InvalidOperationException` when the series is not ordered.
[category:Lookup, resampling and scaling]
| |
SampleV(SeriesDateTimeOffset, V, TimeSpan) |
Finds values at, or near, the specified times in a given series. The operation generates
keys starting from the smallest key of the original series, using the specified `interval`
and then finds nearest smaller values close to such keys. The function generates samples
at, or just before the end of an interval and at, or after, the end of the series.
## Parameters
- `series` - An input series to be resampled
- `interval` - The interval between the individual samples
## Remarks
This operation is only supported on ordered series. The method throws
`InvalidOperationException` when the series is not ordered.
[category:Lookup, resampling and scaling]
| |
SampleK, V(SeriesK, V, IEnumerableK) |
Sample an (ordered) series by finding the value at the exact or closest prior key
for some new sequence of keys.
## Parameters
- `series` - An input series to be sampled
- `keys` - The keys at which to sample
## Remarks
This operation is only supported on ordered series. The method throws
`InvalidOperationException` when the series is not ordered.
[category:Lookup, resampling and scaling]
| |
SampleV(SeriesDateTime, V, TimeSpan, Direction) |
Finds values at, or near, the specified times in a given series. The operation generates
keys starting from the smallest key of the original series, using the specified `interval`
and then finds nearest smaller values close to such keys according to `dir`.
## Parameters
- `series` - An input series to be resampled
- `interval` - The interval between the individual samples
- `lookup` - Specifies how the lookup based on keys is performed. `Exact` means that the
values at exact keys will be returned; `NearestGreater` returns the nearest greater key value
(starting at the first key) and `NearestSmaller` returns the nearest smaller key value
(starting at most `interval` after the end of the series)
## Remarks
This operation is only supported on ordered series. The method throws
`InvalidOperationException` when the series is not ordered.
[category:Lookup, resampling and scaling]
| |
SampleV(SeriesDateTimeOffset, V, TimeSpan, Direction) |
Finds values at, or near, the specified times in a given series. The operation generates
keys starting from the smallest key of the original series, using the specified `interval`
and then finds nearest smaller values close to such keys according to `dir`.
## Parameters
- `series` - An input series to be resampled
- `interval` - The interval between the individual samples
- `dir` - Specifies how the keys should be generated. `Direction.Forward` means that the
key is the smallest value of each chunk (and so first key of the series is returned and
the last is not, unless it matches exactly _start + k*interval_); `Direction.Backward`
means that the first key is skipped and sample is generated at, or just before the end
of interval and at the end of the series.
## Remarks
This operation is only supported on ordered series. The method throws
`InvalidOperationException` when the series is not ordered.
[category:Lookup, resampling and scaling]
| |
SampleV(SeriesDateTime, V, DateTime, TimeSpan, Direction) |
Finds values at, or near, the specified times in a given series. The operation generates
keys starting at the specified `start` time, using the specified `interval`
and then finds nearest smaller values close to such keys according to `dir`.
## Parameters
- `series` - An input series to be resampled
- `start` - The initial time to be used for sampling
- `interval` - The interval between the individual samples
- `lookup` - Specifies how the lookup based on keys is performed. `Exact` means that the
values at exact keys will be returned; `NearestGreater` returns the nearest greater key value
(starting at the first key) and `NearestSmaller` returns the nearest smaller key value
(starting at most `interval` after the end of the series)
## Remarks
This operation is only supported on ordered series. The method throws
`InvalidOperationException` when the series is not ordered.
[category:Lookup, resampling and scaling]
| |
SampleV(SeriesDateTimeOffset, V, DateTimeOffset, TimeSpan, Direction) |
Finds values at, or near, the specified times in a given series. The operation generates
keys starting at the specified `start` time, using the specified `interval`
and then finds nearest smaller values close to such keys according to `dir`.
## Parameters
- `series` - An input series to be resampled
- `start` - The initial time to be used for sampling
- `interval` - The interval between the individual samples
- `lookup` - Specifies how the lookup based on keys is performed. `Exact` means that the
values at exact keys will be returned; `NearestGreater` returns the nearest greater key value
(starting at the first key) and `NearestSmaller` returns the nearest smaller key value
(starting at most `interval` after the end of the series)
## Remarks
This operation is only supported on ordered series. The method throws
`InvalidOperationException` when the series is not ordered.
[category:Lookup, resampling and scaling]
|