Commit 58561908 authored by Klaus Zimmermann's avatar Klaus Zimmermann
Browse files

Add scalar mean reducer (fixes #184)

parent a0236320
......@@ -22,6 +22,11 @@ SUPPORTED_REDUCERS = [
'mean',
]
def scalar_mean(*args):
return float(np.mean(args))
SCALAR_OPERATORS = {
'<': operator.lt,
'>': operator.gt,
......@@ -32,6 +37,7 @@ SCALAR_REDUCERS = {
'min': min,
'max': max,
'sum': sum,
'mean': scalar_mean,
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment