Package: udc-dsnd-distributions
# udc-dsnd-distributions packageThis package provides the Gaussian distribution and Binomial distribution classes.* Gaussian - Gaussian distribution class for calculating and visualizing a Gaussian distribution.Attributes:mean (float) - representing the mean value of the distribution.stdev (float) - representing the standard deviation of the distribution.data_list (list of floats) - a list of floats extracted from the data file.Methods:calculate_mean() - Function to calculate the mean of the data set.calculate_stdev() - Function to calculate the standard deviation of the data set.plot_histogram() -  Function to output a histogram of the instance variable data using matplotlib pyplot library.read_data_file(filename) -  Function to read in data from a txt file. The txt file should have one number (float) per line. The 			numbers are stored in the data attribute.pdf(x) - Probability density function calculator for the gaussian distributionArgs:x (float): point for calculating the probability density functionReturns:float: probability density function outputplot_histogram_pdf(n_spaces = 50) - Function to plot the normalized histogram of the data and a plot of the probability density 			function along the same rangeArgs:n_spaces (int): number of data pointsReturns:list: x values for the pdf plotlist: y values for the pdf plot__add__(other) - Function to add together two Gaussian distributionsArgs:other (Gaussian): Gaussian instanceReturns:Gaussian: Gaussian distribution__repr__() - Function to output the characteristics of the Gaussian instance* Binomial - Binomial distribution class for calculating and visualizing a Binomial distribution.Attributes:mean (float) representing the mean value of the distributionstdev (float) representing the standard deviation of the distributiondata_list (list of floats) a list of floats to be extracted from the data filep (float) representing the probability of an event occurringn (int) number of trialsMethods:calculate_mean() - Function to calculate the mean from p and ncalculate_stdev() - Function to calculate the standard deviation from p and n.read_data_file(filename) -  Function to read in data from a txt file. The txt file should have one number (float) per line. The 			numbers are stored in the data attribute.replace_stats_with_data() - Function to calculate p and n from the data setArgs:NoneReturns:float: the p valuefloat: the n valueplot_bar() - Function to output a histogram of the instance variable data using matplotlib pyplot library.pdf(k) - Probability density function calculator for the gaussian distribution.Args:x (float): point for calculating the probability density functionReturns:float: probability density function outputplot_bar_pdf() - Function to plot the pdf of the binomial distributionArgs:NoneReturns:list: x values for the pdf plotlist: y values for the pdf plot__add__(other) -  Function to add together two Binomial distributions with equal pArgs:other (Binomial): Binomial instanceReturns:Binomial: Binomial distribution__repr__() - Function to output the characteristics of the Binomial instance.# Files* Generaldistribution.py - contains Distribution class, its attributes and methods being inherited by Gaussian and Binomial class.* Gaussiandistribution.py - contains Gaussian class, its attributes and methods stated above in udc-dsnd-distributions package summary.* Binomialdistribution.py - contains Binomial class, its attributes and methods stated above in udc-dsnd-distributions package summary.# Installation* The code should run with no issues using Python versions 3.*.* No extra besides the built-in libraries from Anaconda needed to run this projectMathmatplotlib