Questions tagged [deviation]

98 questions
-1
votes
1 answer

Calculating Standard Deviation in Assignment

I have an assignment for my class that reads like this: Write a class called Stats. The constructor will take no input. There will be a method addData(double a) which will be used to add a value from the test program. Methods getCount(),…
-1
votes
1 answer

C++ with standard deviation and mean issues bad output

Hello can someone please help, my numbers for SD and mean are coming out really weird and I don't know why. I feel like I am accessing the array the wrong way maybe? There is a structure but also an independent array which is the one I am using. I…
-1
votes
2 answers

By Python. making standard deviation and mean lines with different graphes

Maybe the title seems bit confusing. For example, there are three functions such as sin(x), 3 sine(x) and sin(x)+1. X would be from 1 to 100. How can I draw lines of mean with standard deviation (+ and -) for these three function values. I think…
Isaac
  • 885
  • 2
  • 15
  • 35
-2
votes
1 answer

Is there a way to find a deviation between a1=[] and a2=[] in Python?

We have these arrays in python: a1 = [0, 1, 2, 3] a2 = [0, 1.1, 2.2, 3.1] and want to find the deviation between a1 and a2. And sorry, we do not know what's such a type of deviation is named, but probably some of you do know.
-2
votes
2 answers

Can't convert 'float' object to str implicitly

The problem I am having is that I do not know how to fix this part of my code where I get the "TypeError: Can't convert 'float' object to str implicitly" z = ((a+b+c+d+e+f+g+h+i+j+k+l)/12) I am running python 3.4.3 If anyone knows what modules I…
DanielB
  • 11
  • 3
-2
votes
4 answers

Can't get standard deviation to work in C

I tried everything to get standard deviation to work. I'm trying to make a program that gets grades of students (count decided by user) and it calculates the mean of the grades and also the standard deviation. It calculates the mean fine but for…
HyperParameter
  • 274
  • 3
  • 16
-4
votes
1 answer

Meaning of sd argument in R function: "sd="

the "mixedDesign" function was written by the professor for this homework, but I think the argument "sd" is standard as I've found it on other functions but with no description of what the value should actually describe. What am I actually saying…
aybry
  • 316
  • 1
  • 7
1 2 3 4 5 6
7