TPCCLIB
Toggle main menu visibility
Loading...
Searching...
No Matches
libtpcstatist
tpcstatist.h
Go to the documentation of this file.
1
6
#ifndef _TPCSTATIST_H_
7
#define _TPCSTATIST_H_
8
/*****************************************************************************/
9
10
/*****************************************************************************/
11
#include "tpcclibConfig.h"
12
/*****************************************************************************/
13
#include <stdio.h>
14
#include <stdlib.h>
15
#include <string.h>
16
#include <math.h>
17
/*****************************************************************************/
18
#include "
tpcextensions.h
"
19
/*****************************************************************************/
20
21
/*****************************************************************************/
22
/* mean */
23
extern
int
statMeanSD
(
double
*data,
unsigned
int
n,
double
*mean,
double
*sd,
unsigned
int
*vn);
24
extern
int
fstatMeanSD
(
float
*data,
unsigned
int
n,
float
*mean,
float
*sd,
unsigned
int
*vn);
25
/*****************************************************************************/
26
27
/*****************************************************************************/
28
/* median */
29
extern
double
statMedian
(
double
*a,
const
int
n);
30
extern
double
statKthSmallest
(
double
*a,
const
int
n,
const
int
k);
31
/*****************************************************************************/
32
33
/*****************************************************************************/
34
/* sort */
35
extern
void
statSortInt
(
int
*data,
unsigned
int
n,
int
order);
36
extern
void
statSortUnsigned
(
unsigned
int
*data,
unsigned
int
n,
int
order);
37
extern
void
statSortDouble
(
double
*data,
unsigned
int
n,
int
order);
38
/*****************************************************************************/
39
40
/*****************************************************************************/
41
#endif
/* TPCSTATIST */
tpcextensions.h
Header file for library libtpcextensions.
statMeanSD
int statMeanSD(double *data, unsigned int n, double *mean, double *sd, unsigned int *vn)
Definition
mean.c:25
fstatMeanSD
int fstatMeanSD(float *data, unsigned int n, float *mean, float *sd, unsigned int *vn)
Definition
mean.c:73
statSortUnsigned
void statSortUnsigned(unsigned int *data, unsigned int n, int order)
Definition
sort.c:81
statSortInt
void statSortInt(int *data, unsigned int n, int order)
Definition
sort.c:63
statKthSmallest
double statKthSmallest(double *a, const int n, const int k)
Definition
median.c:55
statSortDouble
void statSortDouble(double *data, unsigned int n, int order)
Definition
sort.c:99
statMedian
double statMedian(double *a, const int n)
Definition
median.c:25
Generated on
for TPCCLIB by
1.17.0