transform(deprecated)/multiapply - Maple Help

stats[transform, multiapply]

apply a function across multiple data lists

 Calling Sequence stats[transform, multiapply[fctn]](listdata) transform[multiapply[fctn]](listdata)

Parameters

 fctn - function listdata - list of statistical lists

Description

 • Important: The stats package has been deprecated. Use the superseding package Statistics instead.
 • The function multiapply of the subpackage stats[transform, ...] applies the requested function across the lists of statistical lists in the given listdata.
 • The function supplied must be designed to handle missing data, weighted data and class data correctly, if such data is present in listdata.
 • Each sublist of listdata must contain the same number of elements. In other words, map(nops, listdata) should return a list of identical numbers.
 • This function is an extension to the zip() function.
 • An example of the use of this function is the following. Given a list of marks for each classroom tests, and a formula that computes the final mark of each student, the function transform[multiapply] allows the computations of the final mark of all students, all at once.

Examples

Important: The stats package has been deprecated. Use the superseding package Statistics instead.

 > $\mathrm{with}\left(\mathrm{stats}\right):$
 > $\mathrm{transform}\left[\mathrm{multiapply}\left[\left(x,y\right)↦5\cdot x+{y}^{2}\right]\right]\left(\left[\left[1,2,3\right],\left[4,5,6\right]\right]\right)$
 $\left[{21}{,}{35}{,}{51}\right]$ (1)

These are computed as follows.

 > $\left[5\cdot 1+{4}^{2},5\cdot 2+{5}^{2},5\cdot 3+{6}^{2}\right]$
 $\left[{21}{,}{35}{,}{51}\right]$ (2)