Giter Club home page Giter Club logo

kairos-aggregators's Introduction

KairosDB Aggregators

This project provides custom aggregators for KairosDB. See https://kairosdb.github.io/docs/build/html/kairosdevelopment/Aggregators_and_GroupBys.html for installation instructions.

Score Aggregator

Scores the data based on a set of thresholds. Each data point will be mapped to a value between 0 and n where n is the number of thresholds.

Parameters:

  • order: the order by which scores are assigned. Either ascending or descending.
  • thresholds: a set of thresholds
    • value: the threshold value
    • boundary: determines how to compare against values equal to the threshold value. One of either superior or inferior. Values equal to the threshold value are greater than thresholds with inferior boundaries and less than thresholds with superior boundaries.

Example:

{
    "name": "score",
    "order": "ascending",
    "thresholds": [
        {
            "value": 0,
            "boundary": "superior"
        },
        {
            "value": 10,
            "boundary": "inferior"
        }
    ]
}

The above configuration would yield the following results:

raw data point aggregated data point
-1 0
0 0
1 1
10 2
11 2

The same configuration with descending order would yield equivalent results, except with inverted scores:

raw data point aggregated data point
-1 2
0 2
1 1
10 0
11 0

kairos-aggregators's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.