feed.api.float.utils module

feed.api.float.utils.ceil(s: feed.core.base.Stream[float][float]) → feed.core.base.Stream[float][float][source]

Computes the ceiling of a float stream.

Parameters:s (Stream[float]) – A float stream.
Returns:The ceiling stream of s.
Return type:Stream[float]
feed.api.float.utils.diff(s: feed.core.base.Stream[float][float], periods: int = 1) → feed.core.base.Stream[float][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:

The difference stream of s.

Return type:

Stream[float]

feed.api.float.utils.floor(s: feed.core.base.Stream[float][float]) → feed.core.base.Stream[float][float][source]

Computes the floor of a float stream.

Parameters:s (Stream[float]) – A float stream.
Returns:The floor stream of s.
Return type:Stream[float]
feed.api.float.utils.log(s: feed.core.base.Stream[float][float]) → feed.core.base.Stream[float][float][source]

Computes the log of a float stream.

Parameters:s (Stream[float]) – A float stream.
Returns:The log stream of s.
Return type:Stream[float]
feed.api.float.utils.pct_change(s: feed.core.base.Stream[float][float], periods: int = 1, fill_method: str = 'pad') → feed.core.base.Stream[float][float][source]

Computes the percent change 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 percent change.
  • fill_method (str, default "pad") – The fill method to use for missing values.
Returns:

The percent change stream of s.

Return type:

Stream[float]

feed.api.float.utils.sqrt(s: feed.core.base.Stream[float][float]) → feed.core.base.Stream[float][float][source]

Computes the square root of a float stream.

Parameters:s (Stream[float]) – A float stream.
Returns:The square root stream of s.
Return type:Stream[float]
feed.api.float.utils.square(s: feed.core.base.Stream[float][float]) → feed.core.base.Stream[float][float][source]

Computes the square of a float stream.

Parameters:s (Stream[float]) – A float stream.
Returns:The square stream of s.
Return type:Stream[float]