Join Todd McLeod for an in-depth discussion in this video Calculating mean, part of Code Clinic: Go.
- View Offline
- Exercise Files
- So let's take a look now at how to calculate our mean,…and then once we calculate our mean,…we're going to abstract that code out into its own function.…So, we'll see how to do that.…And then we'll do a really basic measure of performance,…and we'll use time and just measuring how much time…does our code take to run before it was abstracted…and after it was abstracted.…And then we'll take a look at performance,…and we'll see how much time does it take to run our code…before it was abstracted and after it was abstracted,…and to see if there was any difference.…
We'll just do a really basic measure of performance.…Just taking a look at the duration it takes to run…each iteration of code.…So, that's what we're looking at in this video.…Some really interesting stuff.…The first thing to do is to calculate the mean.…And we've already been able to get our data,…and then parse that that into float64.…And so I created a couple of variables.…And here you can see that Go allows you to do…multiple variable assignment and declaration…
Todd introduces challenges and then provides overviews of his solutions in Go. Challenges include topics such as statistical analysis, searching directories for images, and accessing peripheral devices.
Skill Level Beginner
Google App Engine Essential Trainingwith Joseph Lowery3h 26m Intermediate
1. Problem 1—Exploring Lake Pend Oreille
2. Problem 2—Image Analysis
3. Problem 3—Eight Queens
4. Problem 4—Accessing Peripherals
5. Problem 5—Recursion and Directories
6. Problem 6—Building the Web
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.