tensortrade.feed.api.float.ordering module¶
- tensortrade.feed.api.float.ordering.clamp(s: Stream[float], c_min: float, c_max: float) Stream[float] [source]¶
Clamps the minimum and maximum value of a stream.
- tensortrade.feed.api.float.ordering.clamp_max(s: Stream[float], c_max: float) Stream[float] [source]¶
Clamps the maximum value of a stream.
- Parameters:
s (Stream[float]) – A float stream.
c_max (float) – The maximum value to clamp by.
- Returns:
Stream[float] – The maximum clamped stream of s.
- tensortrade.feed.api.float.ordering.clamp_min(s: Stream[float], c_min: float) Stream[float] [source]¶
Clamps the minimum value of a stream.
- Parameters:
s (Stream[float]) – A float stream.
c_min (float) – The mimimum value to clamp by.
- Returns:
Stream[float] – The minimum clamped stream of s.