TPCCLIB
Loading...
Searching...
No Matches
imgqntls.c File Reference

Quantiles from voxel values in PET image. More...

Go to the source code of this file.

Functions

void statSortFloat (float *data, unsigned int n, int order)

Detailed Description

Quantiles from voxel values in PET image.

Author
Vesa Oikonen

Definition in file imgqntls.c.

Function Documentation

◆ statSortFloat()

void statSortFloat ( float * data,
unsigned int n,
int order )

Sort the given double list into ascending or descending order.

Author
Vesa Oikonen
Parameters
dataPointer to data array of size n
nLength of data array
orderAscending (0) or descending (<>0) order

Definition at line 76 of file imgqntls.c.

83 {
84 if(n<2 || data==NULL) return;
85 if(order==0) qsort(data, n, sizeof(float), statFloatCompAsc);
86 else qsort(data, n, sizeof(float), statFloatCompDesc);
87}