]>
Commit | Line | Data |
---|---|---|
4388f060 A |
1 | /* |
2 | ********************************************************************** | |
3 | * Copyright (c) 2011,International Business Machines | |
4 | * Corporation and others. All Rights Reserved. | |
5 | ********************************************************************** | |
6 | */ | |
7 | ||
8 | #ifndef SIEVE_H | |
9 | #define SIEVE_H | |
10 | ||
11 | #define U_LOTS_OF_TIMES 1000000 | |
12 | ||
13 | #include "unicode/utypes.h" | |
14 | /** | |
15 | * Calculate the standardized sieve time (1 run) | |
16 | */ | |
17 | U_INTERNAL double uprv_calcSieveTime(void); | |
18 | ||
19 | /** | |
20 | * Calculate the mean time, with margin of error | |
21 | * @param times array of times (modified/sorted) | |
22 | * @param timeCount length of array | |
23 | * @param marginOfError out parameter: gives +/- margin of err at 95% confidence | |
24 | * @return the mean time, or negative if error/imprecision. | |
25 | */ | |
26 | U_INTERNAL double uprv_getMeanTime(double *times, uint32_t timeCount, double *marginOfError); | |
27 | ||
28 | /** | |
29 | * Get the standardized sieve time. (Doesn't recalculate if already computed. | |
30 | * @param marginOfError out parameter: gives +/- margin of error at 95% confidence. | |
31 | * @return the mean time, or negative if error/imprecision. | |
32 | */ | |
33 | U_INTERNAL double uprv_getSieveTime(double *marginOfError); | |
34 | ||
35 | #endif |