hce-node application
1.4.3
HCE Hierarchical Cluster Engine node application
Main Page
Namespaces
Classes
Files
File List
File Members
hce-node application
HCE project node model
Namespaces
Classes
Files
File List
sources
src
utils
algorithms
applicationFramework
asmXMLParser
base64
coreDumpChecker
DRCE
exec
HCECSM
jsonObjExtractor
kvdb
src
citrusleaf
cf_alloc.h
cf_atomic.h
cf_average.h
cf_base_types.h
cf_byte_order.h
cf_clock.h
cf_digest.h
cf_errno.h
cf_hist.h
cf_hooks.h
cf_ll.h
cf_log.h
cf_log_internal.h
cf_packet_compression.h
cf_queue.h
cf_service.h
cf_shash.h
cf_socket.h
cf_vector.h
citrusleaf-internal.h
citrusleaf.h
cl_cluster.h
cl_request.h
cl_shm.h
proto.h
Exceptions
Aerospike.cpp
Aerospike.hpp
BaseDB.hpp
DataBaseDriverConfig.cpp
DataBaseDriverConfig.hpp
Errors.hpp
FakeDB.hpp
HCETimer.hpp
LevelDB.cpp
LevelDB.hpp
ORMFunctionalObject.cpp
ORMFunctionalObject.hpp
Response.hpp
Voldemort.cpp
Voldemort.hpp
tests
messageStream
reduceAdditionCore
reduceCore
reduceDRCE
reduceHandler
reduceSphinx
refine
serializable
sphinx
types
xmlCleaner
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
cf_average.h
Go to the documentation of this file.
1
/*
2
* A general purpose vector
3
* Uses locks, so only moderately fast
4
* If you need to deal with sparse data, really sparse data,
5
* use a hash table. This assumes that packed data is a good idea.
6
* Does the fairly trivial realloc thing for extension,
7
* so
8
* And you can keep adding cool things to it
9
* Copywrite 2008 Brian Bulkowski
10
* All rights reserved
11
*/
12
13
#pragma once
14
15
#include <stdint.h>
16
17
#include "
citrusleaf/cf_base_types.h
"
18
19
20
#ifdef __cplusplus
21
extern
"C"
{
22
#endif
23
24
25
typedef
struct
cf_average_s
{
26
int
flags
;
27
uint32_t
n_points
;
28
uint64_t
points_sum
;
29
}
cf_average
;
30
31
32
33
cf_average
*
cf_average_create
(uint32_t initial_size, uint32_t flags);
34
void
cf_average_destroy
(
cf_average
*avg);
35
void
cf_average_clear
(
cf_average
*avg);
36
int
cf_average_add
(
cf_average
*avgp, uint64_t value);
// warning! this fails if too many samples
37
double
cf_average_calculate
(
cf_average
*avg,
bool
clear);
38
39
// maybe it would be nice to have a floating point version?
40
41
42
43
#ifdef __cplusplus
44
}
// end extern "C"
45
#endif
46
47
48
sources
utils
kvdb
src
citrusleaf
cf_average.h
Generated on Tue Jun 30 2015 19:42:13 for hce-node application by
1.8.1.2