Description Usage Arguments Value Examples

Coalesce a time series into as few contiguous states as possible. The magic
of information measures is that the actual values of a time series
are irrelevant. For example, `[0, 1, 0, 1, 1]`

has the same entropy as
`[2, 9, 2, 9, 9`

(possibly up to a rescaling). This give us the freedom
to shift around the values of a time series as long as we do not change the
relative number of states. This function thus provides a way of "compressing"
a time series into as small a base as possible. Many of the measures use the
base of the time series to determine how much memory to allocate; the larger
the base, the higher the memory usage. It also affects the overall
performance as the combinatorics climb exponentially with the base. The two
standard usage cases for this function are to reduce the base of a time
series or ensure that the states are non-negative. Notice that the encoding
that is used ensures that the ordering of the states stays the same.

1 | ```
coalesce(series)
``` |

`series` |
Vector of the time series to coalesce. |

List giving the coalesced time series and its base.

1 2 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.