---
title: Downsampler
framework: createmlcomponents
role: symbol
role_heading: Structure
path: createmlcomponents/downsampler
---

# Downsampler

A temporal transformer that down samples the input stream.

## Declaration

```swift
struct Downsampler<Input> where Input : Sendable
```

## Topics

### Creating a transformer

- [init(factor:)](createmlcomponents/downsampler/init(factor:).md)

### Getting the sample factor

- [factor](createmlcomponents/downsampler/factor.md)

### Performing the transformation

- [applied(to:eventHandler:)](createmlcomponents/downsampler/applied(to:eventhandler:).md)
- [Downsampler.DownStreamSequence](createmlcomponents/downsampler/downstreamsequence.md)

## Relationships

### Conforms To

- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [TemporalTransformer](createmlcomponents/temporaltransformer.md)

## See Also

### Time-based components

- [Creating a time-series classifier](createmlcomponents/creating-a-time-series-classifier.md)
- [Creating a time-series forecaster](createmlcomponents/creating-a-time-series-forecaster.md)
- [DateFeatures](createmlcomponents/datefeatures.md)
- [DateFeatureExtractor](createmlcomponents/datefeatureextractor.md)
- [LinearTimeSeriesForecaster](createmlcomponents/lineartimeseriesforecaster.md)
- [LinearTimeSeriesForecasterConfiguration](createmlcomponents/lineartimeseriesforecasterconfiguration.md)
- [TimeSeriesForecasterBatches](createmlcomponents/timeseriesforecasterbatches.md)
- [TimeSeriesForecasterAnnotatedWindows](createmlcomponents/timeseriesforecasterannotatedwindows.md)
- [TemporalFeature](createmlcomponents/temporalfeature.md)
- [TemporalSequence](createmlcomponents/temporalsequence.md)
- [TemporalSegmentIdentifier](createmlcomponents/temporalsegmentidentifier.md)
- [SlidingWindows](createmlcomponents/slidingwindows.md)
- [SlidingWindowTransformer](createmlcomponents/slidingwindowtransformer.md)
- [VideoReader](createmlcomponents/videoreader.md)
- [TemporalFileSegment](createmlcomponents/temporalfilesegment.md)
