PublicShow sourcecontext_math.pl -- Math operations for array manipulations

such as dot product, convolution and functional mapping

Sourceseparate(+L, -X)
Separate off functor, removes a lead functor, not needed?
Sourceones(+Scalar, List)
Generate a ones list
Sourceconstants(+Length, +Scalar, -List)
Generate a list of constants
Sourceuniform(+Length, -Final)
Generate a list of normalized uniform constants such that total is unity
Sourcelinear_range(+Start, +End, -Range)
Generate an integer numbered list. This is the same as built-in => numlist(Start, End, List)
Sourcelinear_fractional_range(+Start, +End, +Fraction, -Range)
Generate a fractional linear range
Sourcelog_range(+Start, +End, +Frac, -Range)
Generate a logarithmic range
Source+From range +To
Range of numbers into a list
Source+X dot +Y
Dot product of two arrays or lists of the same length
Source+X mapdot +Y
Map Dot is a dot product of individual elements, retaining the list structure.
Source+X convolve +Y
Convolve (convulution operator) list with another list.
Source+X correlate +Y
Pair correlate one list with another list.
Source+X derivative +Y
Take the derivative of one list with respect to another list.
Source+X integrate +Y
Take the integral of one list with respect to another delta list.
Sourcecumulative_histogram(+List, -Variates, -Probs)
Cumulative histogram of list generating Variates and Probs
Source+X difference +Y
Take the difference of one list with respect to another list.
Source+X tuple +Y
Create a tuple list from two lists.
Source+X group +Y
Create a tuple list from two lists.
Sourcehistogram(+List, -Variates, -Probs)
Histogram into variates and probability creating cumulative histogram array, has problems with duplicates
Source+X unbias -Y
Remove the mean from a list of values, so the sum is zero.
Source+X normalize -Y
Normalize a list of values, so the sum is unity.
Source+X pdf -Y
Create a PDF from a list of values.
Source+X zshift -Y
Do a DSP z-shift from a list.
Source+X window -Y
Do a lag-window or centered window on a list.
Source+X shrink -Y
Shrink a list to match the second.
Source+X expand -Y
Expand a list to match the second.
Source+X cat -Y
Flatten a list.
Source+X offset +Y
Offset a list by N elements.
Source+X ordinal +Y
Create an ordinal (counting) list from a list.
Source+X split +Y
Split pairs of values into two sequential lists.
Sourceindex(+List, +Pos, -Index)
Index a list like an array, only on flat uniformly-space lists
Sourcespatial(+List, +Pos, -Value)
Index a list like an array
Source+X deplete -Y
deplete a list according to a rate.
Sourceinterpolate(+Line, +Table, -Result)
interpolate along a number line according to a sparse table.
Source+X invert +Y
Invert sign of all list.
Source+X reciprocal +Y
Reciprocal of all list.
Sourceextract(+X, +From, +To, -Y)
Extract a section from a list.
Sourceexclude(+X, +From, +To, -Y)
Exclude a section from a list.

Undocumented predicates

The following predicates are exported, but not or incorrectly documented.

SourceArg1 delay Arg2
SourceArg1 lag Arg2
SourceArg1 accumulate Arg2