Macaw.Data.Operations.Transforms (macaw_data v0.18.0)

View Source

The table operations of macaw_data's package (spec/04 §4), each a transform (Macaw.Data.Transform) ported from visualize's Chart.Transform.Data, and what they share: finding a column by either spelling of its name, reading a chunk's view of one, a reading as seconds, and a per-row selection. Each is a column-native step (Macaw.Data.Operations.Step, spec/04 §1.4); none reads rows.

OpOptions (* required)
filterfield*, test, value
taken*, side
windowfield*, from, to, latest
lttbfields*, n*
m4fields*, width*
sortfield*, order
foldfields*, as
stackfields*, order, offset
binfield*, thresholds, as, fn
aggregate, sumfield*, fn* (aggregate only), by, as
spectrumfield*, time, every, samples, window, detrend, as

Summary

Types

What a step reads a column's values as (spec/04 §3.1): :number; :time, a time or a number as seconds (seconds!/3); :positive, a number above zero (a log scale's x); :comparable, numbers, or times of any kinds, not both; :point, a number or a point [x, y]; :any, anything.

Functions

The modules of the table operations, in spec/04 §4's order.

Types

reading()

@type reading() :: :number | :time | :positive | :comparable | :point | :any

What a step reads a column's values as (spec/04 §3.1): :number; :time, a time or a number as seconds (seconds!/3); :positive, a number above zero (a log scale's x); :comparable, numbers, or times of any kinds, not both; :point, a number or a point [x, y]; :any, anything.

Functions

all()

@spec all() :: [module()]

The modules of the table operations, in spec/04 §4's order.