tensortrade.feed.api.float.utils module¶
-
tensortrade.feed.api.float.utils.ceil(s: tensortrade.feed.core.base.Stream[float]) → tensortrade.feed.core.base.Stream[float][source]¶ Computes the ceiling of a float stream.
- Parameters
s (Stream[float]) – A float stream.
- Returns
Stream[float] – The ceiling stream of s.
-
tensortrade.feed.api.float.utils.diff(s: tensortrade.feed.core.base.Stream[float], periods: int = 1) → tensortrade.feed.core.base.Stream[float][source]¶ Computes the difference of a float stream.
- Parameters
s (Stream[float]) – A float stream.
periods (int, default 1) – The number of periods to lag for until computing the difference.
- Returns
Stream[float] – The difference stream of s.
-
tensortrade.feed.api.float.utils.floor(s: tensortrade.feed.core.base.Stream[float]) → tensortrade.feed.core.base.Stream[float][source]¶ Computes the floor of a float stream.
- Parameters
s (Stream[float]) – A float stream.
- Returns
Stream[float] – The floor stream of s.
-
tensortrade.feed.api.float.utils.log(s: tensortrade.feed.core.base.Stream[float]) → tensortrade.feed.core.base.Stream[float][source]¶ Computes the log of a float stream.
- Parameters
s (Stream[float]) – A float stream.
- Returns
Stream[float] – The log stream of s.
-
tensortrade.feed.api.float.utils.pct_change(s: tensortrade.feed.core.base.Stream[float], periods: int = 1, fill_method: str = 'pad') → tensortrade.feed.core.base.Stream[float][source]¶ Computes the percent change of a float stream.
-
tensortrade.feed.api.float.utils.sqrt(s: tensortrade.feed.core.base.Stream[float]) → tensortrade.feed.core.base.Stream[float][source]¶ Computes the square root of a float stream.
- Parameters
s (Stream[float]) – A float stream.
- Returns
Stream[float] – The square root stream of s.
-
tensortrade.feed.api.float.utils.square(s: tensortrade.feed.core.base.Stream[float]) → tensortrade.feed.core.base.Stream[float][source]¶ Computes the square of a float stream.
- Parameters
s (Stream[float]) – A float stream.
- Returns
Stream[float] – The square stream of s.