GithubHelp home page GithubHelp logo

cs010_lab09's Introduction

CS 10 - Lab 9: Vectors- Standard Deviation

Overview

Review, if needed, the concept and equation for calculating the mean and standard deviation of a finite and full set of values.

You will be given two functions and must build the third. From within your cs010_practice directory, type git pull and hit enter in a terminal or download+upload the lab9.cpp starter file from the lab 9 Google drive directory.

The three functions for this lab: fillVector, average and standardDeviation.

  1. Each of these three functions will perform the task implied by the name.
  2. Each will have only one parameter, a vector of doubles (by value? by reference? by const reference?)
  3. None of the functions should contain output statements.

(given) fillVector populates the vector with values acquired from input. Input redirection should be utilized in testing as you will not know how many values will exist, simply that each will be separated by whitespace. You may utilize this function or you may fill your vector through other means, when testing your function.

(given) average calculates and returns the mean of all the values in the pre‐filled vector which is provided as a parameter. This function is invoked once as a helper function within your standard deviation function.

(todo) standardDeviation calculates and returns the standard deviation of the values in the pre‐filled vector which is provided as a parameter.

R’Sub will use its own test harness, but you still need to understand how to walk through and test your function!

Known Bugs

No currently known bugs!

cs010_lab09's People

Contributors

ryanulep avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.