transform(deprecated)/statvalue - Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : transform(deprecated)/statvalue

stats[transform, statvalue]

value of each datum

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

stats[transform, statvalue](data)

transform[statvalue](data)

Parameters

data

-

statistical list

Description

• 

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

• 

The statvalue function of the subpackage stats[transform, ...] replaces each data point of data by its value. In other words, it resets the weight of each data point to 1.

• 

The order of the data items is not changed.

• 

Note that repeated items will still be repeated, though each instance will have a weight of 1. If it is required that only a single instance of the items remain, use transform[tally] prior to using transform[statvalue]. Of course, the call to tally will, in general, change the order of the data.

• 

The name of this function is chosen to avoid the clash with the value() function.

Examples

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

withstats:

data1Weight3,2,Weight4,5

data1:=Weight3,2,Weight4,5

(1)

transform[statvalue]data1

3,4

(2)

For the data list (which has the item 3 appearing twice)

data2Weight3,2,Weight3,6,Weight4,5

data2:=Weight3,2,Weight3,6,Weight4,5

(3)

compare

transform[statvalue]data2

3,3,4

(4)

with

transform[tally]data2

Weight3,8,Weight4,5

(5)

transform[statvalue]

3,4

(6)

A more general example is:

data3Weight3,10,missing,4,Weight11..12,3,15..17

data3:=Weight3,10,missing,4,Weight11..12,3,15..17

(7)

transform[statvalue]data3

3,missing,4,11..12,15..17

(8)

See Also

Statistics

transform(deprecated)[cumulativefrequency]

transform(deprecated)[frequency]

transform(deprecated)[tally]

value

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam