Wanting to see the frequency (percentage) of an event that happens per month, per week, and per day using C# and WPF or Windows Forms. I originally asked for WPF; however, now it's not a big deal if it's one or the other. I would prefer C# though since that is the language I know better then any other language.
This part is my update version and below the line is my previous version. If I am not making sense, please let me know and I will try better at explaining the concept......
What I am looking for is a way to get a prediction of when a dog would bark the most throughout the day, week or month. If I have a record that shows that an event occurs 3 times during a week at 10 am and twice at 1 pm, and to track that event for one week would show that the dog barked 33.33% of the time at 10 am and 66% of the time at 1pm.
Now if the dog barked on Monday at 10 am and again at 1 pm then again on Wednesday at 1 pm that would change the percentage to not only 33% at 10 am, but would make Monday 66% of the barks.
What I am not understanding is when trying to come up with a percentage how would someone take into account a day, week and month? What is difficult is thinking of the logic around the three percentages. I would like to get (day, week, month)
and if an event occurs on one day more then another day the percentage may be higher for the day with more events, but if a trend shows that Wednessday has more documented events throughout the month then Monday then Wednessday should have a higher frequency rate then Monday, even though Monday may have had more events then Wednesday.
I am not sure if I am explaining this correctly and I am doing this from my phone so please ignore in correct spelling and improper sentences / words.
I am not asking for someone to write the code for me, as this is a personal project for my 7 year old daughter and I at home, however, the concept does not register completely to me and trying to come up with a workflow in my mind is a little over my knowledge of expertise on this.
_________________________________________________
30 days = 100% of a month
5 days a week = 100% of the week
8 hours in a day = 100% of the day
1 hour block = 100% of the block
So, let's say a dog barks 2 times a day on Monday and Wednesday at 11 am and 1 pm. Then the dog barks on Thursday of the next week at 10am Then the next week the dog barks on Monday, Tuesday and Thursday at 9 am, 10 am and 2pm. How would I find the percentage per day, week and month of the dark barking to know which times and days are more predictive that the dog may bark? So in other words, the times may be random, but over a month time come up with a percentage of each time and day.
What I have tried:
I know how to come up with a percentage, but figuring the frequency over a day, week and month is too in depth for me.