Skip to content

Instantly share code, notes, and snippets.

@Joelfranklin96
Last active May 27, 2020 01:05
Show Gist options
  • Save Joelfranklin96/79a59bc11c15bb10ab145df45b077aa6 to your computer and use it in GitHub Desktop.
Save Joelfranklin96/79a59bc11c15bb10ab145df45b077aa6 to your computer and use it in GitHub Desktop.
defining an object - 2
# Defining an object of guassian class
guassian_two = guassian()
# Reading the data from text file
guassian_two.read_text('sample.txt')
# Calculating the mean and standard deviation
guassian_two.calculate_mean()
guassian_two.calculate_stdev(False)
# Plotting the histogram
guassian_two.plot_histogram()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment