just-kile / Zapfmaster2000

facebook.com/Zapfmaster2000
2 stars 1 forks source link

Add distribution chart #190

Closed partysalat closed 10 years ago

partysalat commented 10 years ago

Add a distribution chart with expectation/variance etc.

partysalat commented 10 years ago

Please use json schema https://github.com/just-kile/Zapfmaster2000/wiki/Schema-distribution

This scheme is not implemented in frontend yet.

feel free to rename attributes, please just paste it in here :)

thomaskipar commented 10 years ago

Using shema:

{ "expectation": 3.234, "variance": 0.01231, "degression": 0.123, "normalCurve":[{"amount": 0, "userCount": 1.2}, ...] "actualCurve":[{"amount": 0, "userCount": 1.2}, ...] }

actualCurve is not set yet. We need to test if data looks ok with normal curve or what we have to do so it does. Please adjust frontend to use the new provided data and get back to me afterwards so we can discuss the further steps.

@partysalat Please update schema accordingly if it fits your needs, otherwise fix it and tell me =)

partysalat commented 10 years ago

Implemented.

@thomaskipar Please check if calculation is alright, i get the same parameter userCount for every amount. (see http://develop.zapfmaster2000.de/zapfmaster2000-service/rest/statistics/distribution?token=o7a5kef65ubkavvkb52gh2iota )

thomaskipar commented 10 years ago

Fixed the problem, values are reported now correctly by the back end.

thomaskipar commented 10 years ago

Added values for "actualValues". Changed "userCount" to "probability", because this is what it really is about.

@partysalat, please draw the actual values in the chart as well and let us discuss the result afterwards.

partysalat commented 10 years ago

Added 2nd line to chart with new json.

@thomaskipar the results at develop seems pretty nice ;).