trendlist.simple

Trends as lists, trendlists as lists of lists.

This module lets you explore trends in sequences, preserving all the information about the original sequences. It works well enough for short sequences, but is a real dog for sequences of lengths in the thousands.

Functions

is_mono_inc(s)

List is monotonically increasing.

is_mono_inc2(s)

List is monotonically increasing.

is_trend(s)

List is a trend.

pfx_trend(s)

Return the first trend in the sequence.

pows(n[, base, start])

Return sequence of n powers of the base.

print_trends(s)

Pretty, colored printout.

trend_list(s)

Decompose a IntList into its trends.