How to Smoothly Distribute Monthly Data Values Across Daily Intervals?

  • Thread starter Thread starter josse34
  • Start date Start date
  • Tags Tags
    Data Year
AI Thread Summary
To distribute monthly data values across daily intervals while ensuring the total for each month matches the specified values, a simple approach is recommended. Using linear interpolation or a basic smoothing technique can help achieve a visually appealing graph. Simpson's rule is not suitable for this task, as it is intended for numerical integration rather than data distribution. The solution should be easily integrable into PHP code for practical application. A straightforward method will facilitate the implementation and ensure accurate daily values.
josse34
Messages
2
Reaction score
0
Hi!
I have a problem to resolve this question :

I have a total value each month :
January = 60
Fébruary = 80
March = 130
April = 150
May = 180
June = 200
July = 210
August = 170
September = 140
October = 90
November = 60
December = 50

I want to calculate the value each day of year, but the total of this values each month must be exactly like value previously describing.
Also, the graphic render must be with smoothing line, like spline or simpson rule.

See attached a excel base http://cjoint.com/?CKilaalz7z2

How to make this ?!

Thank you so much and have a nice day!

Bye
 
Mathematics news on Phys.org
Simpson's rule is for numerical integration, so you don't want that.
 
Any method is ok for me, the simply is the best because i must integrate this into PHP code after!
Do you any idea?
Thanks
 
Seemingly by some mathematical coincidence, a hexagon of sides 2,2,7,7, 11, and 11 can be inscribed in a circle of radius 7. The other day I saw a math problem on line, which they said came from a Polish Olympiad, where you compute the length x of the 3rd side which is the same as the radius, so that the sides of length 2,x, and 11 are inscribed on the arc of a semi-circle. The law of cosines applied twice gives the answer for x of exactly 7, but the arithmetic is so complex that the...
Back
Top