Tor 0.4.9.0-alpha-dev
Functions
order.h File Reference

Header for order.c. More...

#include "lib/cc/compat_compiler.h"
#include "lib/cc/torint.h"

Go to the source code of this file.

Functions

int find_nth_int (int *array, int n_elements, int nth)
 
time_t find_nth_time (time_t *array, int n_elements, int nth)
 
double find_nth_double (double *array, int n_elements, int nth)
 
int32_t find_nth_int32 (int32_t *array, int n_elements, int nth)
 
uint32_t find_nth_uint32 (uint32_t *array, int n_elements, int nth)
 
long find_nth_long (long *array, int n_elements, int nth)
 
static int median_int (int *array, int n_elements)
 
static time_t median_time (time_t *array, int n_elements)
 
static double median_double (double *array, int n_elements)
 
static uint32_t median_uint32 (uint32_t *array, int n_elements)
 
static int32_t median_int32 (int32_t *array, int n_elements)
 
static uint32_t third_quartile_uint32 (uint32_t *array, int n_elements)
 

Detailed Description

Header for order.c.

Definition in file order.h.

Function Documentation

◆ median_double()

static double median_double ( double *  array,
int  n_elements 
)
inlinestatic

Definition at line 39 of file order.h.

◆ median_int()

static int median_int ( int *  array,
int  n_elements 
)
inlinestatic

Definition at line 29 of file order.h.

◆ median_int32()

static int32_t median_int32 ( int32_t *  array,
int  n_elements 
)
inlinestatic

Definition at line 49 of file order.h.

◆ median_time()

static time_t median_time ( time_t *  array,
int  n_elements 
)
inlinestatic

Definition at line 34 of file order.h.

◆ median_uint32()

static uint32_t median_uint32 ( uint32_t *  array,
int  n_elements 
)
inlinestatic

Definition at line 44 of file order.h.

◆ third_quartile_uint32()

static uint32_t third_quartile_uint32 ( uint32_t *  array,
int  n_elements 
)
inlinestatic

Definition at line 55 of file order.h.