GIRAFFE Pipeline Reference Manual

C Array Utilities


Functions

cxint giraffe_array_sort (cxdouble *array, cxsize size)
 Sorts an array in ascending order.
cxdouble giraffe_array_mean (const cxdouble *array, cxsize size)
cxdouble giraffe_array_median (const cxdouble *array, cxsize size)

Detailed Description

TBD

Function Documentation

cxint giraffe_array_sort ( cxdouble *  array,
cxsize  size 
)

Sorts an array in ascending order.

Parameters:
array The array to sort.
size The array size.
Returns:
The function returns 0 on success and -1 otherwise
The function sorts the first size elements of array in ascending order. During sorting the elements of array are reshuffled so that on return the contents of array is sorted. The number of elements size to be sorted may be less than the actual array size.

Definition at line 177 of file giarray.c.


This file is part of the GIRAFFE Pipeline Reference Manual 2.10.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Thu Mar 7 14:11:03 2013 by doxygen 1.4.7 written by Dimitri van Heesch, © 1997-2004