Next Previous Up Contents
Next: CoordsDegrees
Up: Functions
Previous: Coverage

10.5.15 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: CoordsDegrees
Up: Functions
Previous: Coverage

STILTS - Starlink Tables Infrastructure Library Tool Set
Starlink User Note256
STILTS web page: http://www.starlink.ac.uk/stilts/
Author email: m.b.taylor@bristol.ac.uk
Mailing list: topcat-user@jiscmail.ac.uk