Next Previous Up Contents
Next: Maths
Up: General Functions
Previous: KCorrections

B.1.13 Lists

Functions which operate on lists of values.

Some of these resemble similar functions in the Arrays class, and in some cases are interchangeable, but these are easier to use on non-array values because you don't have to explicitly wrap up lists of arguments as an array. However, for implementation reasons, most of the functions defined here can be used on values which are already double[] arrays (for instance array-valued columns) rather than as comma-separated lists of floating point values.

sum( values, ... )
Returns the sum of all the non-blank supplied arguments.

mean( values, ... )
Returns the mean of all the non-blank supplied arguments.

variance( values, ... )
Returns the population variance of the non-blank supplied arguments.

stdev( values, ... )
Returns the population standard deviation of the non-blank supplied arguments.

min( values, ... )
Returns the minimum of all the non-blank supplied arguments.

max( values, ... )
Returns the maximum of all the non-blank supplied arguments.

median( values, ... )
Returns the median of all the non-blank supplied arguments.

countTrue( values, ... )
Returns the number of true values in a list of boolean arguments. Note if any of the values are blank, the result may be blank as well.


Next Previous Up Contents
Next: Maths
Up: General Functions
Previous: KCorrections

TOPCAT - Tool for OPerations on Catalogues And Tables
Starlink User Note253
TOPCAT web page: http://www.starlink.ac.uk/topcat/
Author email: m.b.taylor@bristol.ac.uk
Mailing list: topcat-user@jiscmail.ac.uk