Wrong Implementation

Yudong Tao's Avatar

Yudong Tao

27 May, 2019 10:05 AM

The average time statistics in the Line view is wrong.
If I have 7:59 for yesterday 4:01 for today, it shows 5:01 for 2-day average.
The error remains if I use 7-day, etc.

  1. Support Staff 1 Posted by Niko on 28 May, 2019 11:19 AM

    Niko's Avatar

    Hi Yudong,

    The reason it shows a value of 5:01 for the second day, is that the averages are weighted. The further in the past the less weight the values are given.
    If there are just two values to calculate the average from, then the weights are “3” for the current day and “1” for the day before.

    I am using a weighted average so there are no unexpected “bumps” in the average graph and I think it makes more sense this way.

    For example:
    The app is set top 7-day average.
    You have these values: …1,1,1,100,1,1,1...
    Then on day 7 after the “100” day, the average graph would suddenly “fall” down to “1” again.
    With the weighted average the graph slowly goes down to an average of “1”.

    I hope this makes sense to you.

    Thanks,
    Niko

  2. 2 Posted by Yudong Tao on 29 May, 2019 04:14 PM

    Yudong Tao's Avatar

    Dear Niko:

    Your explanation kind of make sense. But for my personal usage, it is more useful to have normal average value.

    Could you kindly add an option or allow the user to specify the weight?

    Thanks,
    Yudong Tao

  3. Support Staff 3 Posted by Niko on 31 May, 2019 10:31 AM

    Niko's Avatar

    Hi Yudong,

    In this case I have to use the implementation that is useful to most people. Otherwise the user interface would get cluttered quickly. Also most people wouldn’t know what a weight function is and would get confused.

    What I could do is add a hidden option (that appears after hitting a key shortcut), that allows you to enter some kind of weight function.

    Niko

  4. 4 Posted by Yudong Tao on 31 May, 2019 03:48 PM

    Yudong Tao's Avatar

    Dear Niko:

    That will be really helpful.

    Regards,
    Yudong Tao

  5. Support Staff 5 Posted by Niko on 26 Jun, 2019 10:11 AM

    Niko's Avatar

    Hi Yudong,

    I have just released an update to Timelime on the App Store that adds the functionality requested by you:

    When you hold down the shift-key while selecting “Line” chart view in the app window, the values used to calculate the averages will all have equal weights (instead of the default using a weight function).

    I hope this suits your needs.

    Have a good one,
    Niko

  6. 6 Posted by Yudong Tao on 26 Jun, 2019 02:40 PM

    Yudong Tao's Avatar

    Thanks!

    Regards,
    Yudong Tao

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac