Data Transform (experimental)

Contents

Overview

Applications

Examples

# simple
Temperature->last()->format('%.2f degC')
Temperature->last()->scale(1.8)->offset(32)->format('%.2f degF')
TableData -> last() -> get("NHits") -> histogram(nbins=100,min=0,max=100)

# [TODO] with target
Table->format[column='Temperature']('$.2f degC')

# [TODO] using stack
Temperature->dropBelow(0); Pressure->dropBelow(0); ->zip()
Voltages;Voltages[Main];Voltages[Offset];->sum();->addColumn()

# [TODO] using register file
Temperature->dropBelow(0)->T; Pressure->dropBelow(0)->P; (T,P)->zip()
Voltages[Main]->Vm;Voltages[Offset]->Vo; (Vm,Vo)->sum();(Voltages,.)->addColumn()

Syntax

DATA[ADAPTER1] -> FUNCTOR1(ARG1, ARG2, ...)[ADAPTER2] -> FUNCTOR2(...) ...

Functor Chain, Stack and Register

For functors that takes multiple inputs, stack operators can be used:

CAHNNEL1 -> FUNCTOR1(); CHANNEL2 -> FUNCTOR2() ->...; -> FUNCTOR()

where ; is an operator to push the data into stack.

As an alternative method, output can be pushed back into the data set as a new channel:

CH_1 -> FUNCTOR1()->CH_A; CH_2 -> FUNCTOR2() -> CH_B; CH_A -> FUNCTOR()

Adapters

Syntax Sugar

List of Functors

Scalar Functors

Array Functors

Time-Series Functors

Histogram Functors

Graph Functors

Table Functors

Tree Functors