biomcmc-lib
0.1
low level library for phylogenetic analysis
lib
quickselect_quantile.h
Go to the documentation of this file.
1
/*
2
* This file is part of biomcmc-lib, a low-level library for phylogenomic analysis.
3
* Copyright (C) 2019-today Leonardo de Oliveira Martins [ leomrtns at gmail.com; http://www.leomartins.org ]
4
*
5
* biomcmc is free software; you can redistribute it and/or modify it under the terms of the GNU General Public
6
* License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later
7
* version.
8
*
9
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
10
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
11
* details (file "COPYING" or http://www.gnu.org/copyleft/gpl.html).
12
*/
13
19
#ifndef _biomcmc_quickselect_quantile_h_
20
#define _biomcmc_quickselect_quantile_h_
21
22
#include "
lowlevel.h
"
23
24
double
biomcmc_quantile_double (
double
*original_vector,
int
n,
double
quantile);
25
void
biomcmc_quantile_vector_double (
double
*original_vector,
int
n,
double
*quantile,
int
n_quantile,
double
*result);
26
double
biomcmc_wirth_algorithm
(
double
*a,
int
n,
int
k);
28
#endif
lowlevel.h
Lowest level header file. Header file for lowlevel.c.
biomcmc_wirth_algorithm
double biomcmc_wirth_algorithm(double *a, int n, int k)
find k-smallest element, changing vector a[]
Definition:
quickselect_quantile.c:79
Generated by
1.8.13