Biorhythm Chart Visualization Project: Data Science Applications

Verified

Added on  2025/05/05

|5
|428
|271
AI Summary
Desklib provides solved assignments and past papers to help students succeed.
Document Page
Contents
Biorhythm................................................................................................................................................2
Biorhythms as cosine and sine curves.....................................................................................................2
Calculation of biorhythm.........................................................................................................................2
Chart display............................................................................................................................................3
Algorithm for Biorhythm.........................................................................................................................3
Coding Part..............................................................................................................................................3
Features....................................................................................................................................................4
Discussion................................................................................................................................................5
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Biorhythm
It is the way toward increasing more attention to numerous physiological capacities basically
utilizing instruments that give data on the action of those equivalent frameworks, with an
objective of having the option to control them freely.
Calculation of biorhythm
Biorhythm portrays the level and the limit with regards to execution on 3 Primary
dimensions: physical, Intellectual and Emotional.
The Emotional biorhythm goes on for 33 days and identifies with your psychological
capacities to take care of issues.
The Intellectual biorhythms keep going for 28 days (simply like the Moon's cycle)
and identifies with your passionate stress or security.
The physical biorhythm goes on for 23 days and is identified with your physical
vitality, strength, wellbeing, stamina
Physical: y = sin (2 π t / 23 )
Emotional: y = sin (2 π t / 28)
Intellectual: y = sin (2 π t / 33)
Document Page
Chart display
Algorithm for Biorhythm.
1. Initialize starting date and final date.
2. Assign an array to final and starting value for target date.
3. Create a list for variation
4. Implemented biorhythm formula
5. Plot the chart.
Coding Part
import matplotlib.pyplot as p
import matplotlib.dates
from numpy import array,pi,sin
from datetime import date
#input(" Write the date in yyyy/mm/dd: ")
birth_yr,birth_mn,birth_dt=map(int,'1997/10/19'.split('/'))
Document Page
end_yr,end_mn,end_dt=map(int,'2019/5/29'.split('/'))
birth_dt = date(birth_yr,birth_mn,birth_dt).toordinal()
target_dt = date(end_yr,end_mn,end_dt).toordinal()
variation = array(range(target_dt - 15,target_dt + 15))
bio_formula=(sin( 2 * pi * ( variation - birth_dt ) / 23), sin( 2 * pi * ( variation - birth_dt ) / 33), sin( 2
* pi *( variation - birth_dt ) / 28))
list= []
for z in variation:
list.append(date.fromordinal(z))
chart = p.figure(figsize=(11,9))
axis = chart.gca()
p.plot(list, bio_formula[0], color="lightcoral", linewidth=3.5)
p.plot(list, bio_formula[1], color="rosybrown", linewidth=3.5)
p.plot(list, bio_formula[2], color="lightseagreen", linewidth=3.5)
p.legend([ ' Physical', ' Intellectual',' Emotional'])
p.axhline(0, color="dimgrey", linewidth=3.5)
p.title("Birth Date = %02u/%02u/%04u Targeted Date = %02u/%02u/%04u" %
(birth_dt,birth_mn,birth_yr, end_dt, end_mn, end_yr))
p.grid(True)
p.xlim((variation[0],variation[-1]))
p.show()
Features
The chart plotted is interactive and different colours are assigned to different lines so that
they can be distinguished. There are labels present which represent the lines so that the user
can understand the chart better.
Discussion
The report is made on biorhythms which is calculated on the bases of two dates provide by
the user (i.e. starting date and ending date) and the chart is plotted with reference to Physical,
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Emotional, Intellectual biorhythms. The code is build using python language and with the
help of matplot module and numpy module the chart are formed.
chevron_up_icon
1 out of 5
circle_padding
hide_on_mobile
zoom_out_icon
[object Object]