MiscHelpers.h
Go to the documentation of this file.
1 // This file is part of the MercuryDPM project (https://www.mercurydpm.org).
2 // Copyright (c), The MercuryDPM Developers Team. All rights reserved.
3 // License: BSD 3-Clause License; see the LICENSE file in the root directory.
4 
5 // Miscellaneous helpers
6 
7 #ifndef MERCURYDPM_MISC_HELPERS_H
8 #define MERCURYDPM_MISC_HELPERS_H
9 
10 #include "Math/ExtendedMath.h"
11 
12 #include <string>
13 
14 namespace helpers
15 {
19  void gnuplot(std::string command);
20 
22 
26  int qSortCompare(const void* x, const void* y);
27 
31  double getPercentile(const double* array, size_t nel, double perc);
32 }
33 
34 #endif // MERCURYDPM_MISC_HELPERS_H
double Mdouble
Definition: GeneralDefine.h:13
Scalar * y
Definition: level1_cplx_impl.h:128
std::array< T, N > array
Definition: EmulateArray.h:231
Definition: CommandLineHelpers.h:11
Mdouble getRealTime()
Definition: MiscHelpers.cc:30
double getPercentile(const double *array, size_t nel, double perc)
Returns the 100*perc-th percentile of array.
Definition: MiscHelpers.cc:53
int qSortCompare(const void *x, const void *y)
For use with qsort.
Definition: MiscHelpers.cc:39
void gnuplot(std::string command)
Plots to a gnuplot window.
Definition: MiscHelpers.cc:17
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286
list x
Definition: plotDoE.py:28