ChronixDB / chronix.server

The Chronix Server implementation that is based on Apache Solr.
Apache License 2.0
263 stars 29 forks source link

New Aggregation: Signed Difference #16

Closed FlorianLautenschlager closed 8 years ago

FlorianLautenschlager commented 8 years ago

Implement signed difference aggregation.

For negative values

first = -1
last = -10
=> diff = -9

For positive values

first = 1
last = 10
=> diff = 9

Positive first, negative last

first = 1
last = -10
=> diff = -11

Negative first, positive last

first = -1
last = 10
=> diff = 11
FlorianLautenschlager commented 8 years ago

Fixed with #23.