Questions tagged [deviation]
98 questions
15
votes
10 answers
C# Why are timer frequencies extremely off?
Both System.Timers.Timer and System.Threading.Timer fire at intervals that are considerable different from the requested ones.
For example:
new System.Timers.Timer(1000d / 20);
yields a timer that fires 16 times per second, not 20.
To be sure that…

Daniel Wolf
- 12,855
- 13
- 54
- 80
14
votes
6 answers
Swift Array extension for standard deviation
I am frequently needing to calculate mean and standard deviation for numeric arrays. So I've written a small protocol and extensions for numeric types that seems to work. I just would like feedback if there is anything wrong with how I have done…

twiz_
- 1,178
- 10
- 16
10
votes
1 answer
How do I create a reliable compass for iOS and Android in Javascript?
I'm trying to create a reliable compass in Javascript/JQuery (using deviceorientation) so that it works on iOS and Android mobile devices.
I know nearly every (very old) question/answer here in Stackoverflow about this topic. I have created a pretty…

Jonny
- 816
- 10
- 24
9
votes
1 answer
Jmeter deviation vs throughput
can you give some.explanation on how to interpret deviation vs.throughput?
Is 1000++ deviation result means a poor performance of web under test?
And how can you also say that the web under test performs good? Is it base on.throughput result?…

Jimmy
- 383
- 2
- 5
- 10
9
votes
2 answers
Java Recursion Triangle with Deviation
Hello I am fairly new to programming and I am trying, in Java, to create a function that creates recursive triangles from a larger triangles midpoints between corners where the new triangles points are deviated from the normal position in y-value.…

Verzus
- 121
- 1
- 5
8
votes
6 answers
Finding the difference between consecutive numbers in a list (Python)
Given a list of numbers, I am trying to write a code that finds the difference between consecutive elements. For instance, A = [1, 10, 100, 50, 40] so the output of the function should be [0, 9, 90, 50, 10]. Here is what I have so far trying to…

user3758443
- 149
- 1
- 3
- 10
6
votes
1 answer
Obtain Deviantart Deviation ID / UUID from page URL
I was looking at the Deviantart API to see what you can do with it .
A lot of requests require you to provide a deviation id to work with.
Take for instance adding a deviation to favorites ( in Collections -> Add deviation to favorites above, I…

Pinkie Pie
- 688
- 7
- 15
4
votes
1 answer
Different results in calculating Variance ans Standard Deviation in R
Calculating variance and standard deviation based on the Wikipedia description gives different results compared to the standard functions var() and sd() in R.
Variance: 4 versus 4.571429. Standard deviation: 2 versus 2.13809.
Anyone suggestions or…

Rene
- 43
- 3
3
votes
2 answers
How to give a warning when a moving object deviates from a path by a specific margin?
In my pygame-code, I have a drone that is supposed to follow a flight path.
I used pygame.draw.lines to draw lines between specified points. Now, I have a flight path with 10 points where after each point the path angle changes (a bit like a…

Yaso
- 37
- 4
3
votes
2 answers
Statistical Stock Scanner in Mathematica
my goal is to write an algorithm in Mathematica that will search for stocks whose current price is trading below or above 2 Standard Deviations of the Mean. I literally started to learn the program yesterday but I have been scouring the internet…

Brandon
- 31
- 1
- 2
3
votes
3 answers
How to detect deviations in a sequence from a pattern?
i want to detect the passages where a sequence of action deviates from a given pattern and can't figure out a clever solution to do this, although the problem sound really simple.
The objective of the pattern is to describe somehow a normal…

kobo
- 155
- 5
3
votes
1 answer
What is the between variance formula in panel data?
I want to calculate panel descriptive statistics for my variables analogously to how Stata provides them using the "xtsum" function. I am able to compute almost everything (overall/within sd, mean, min, max) but I cannot seem to find a reliable…
user11005502
3
votes
0 answers
SWIFT: Compass-like animation
I have configured Core Motion manager in order to access the rotation coordinates and use them to animate deviation, like in native compass application. So here is what I want to achieve:
It is this green line showing the deviation. I've tried…

Adrian Krzyżowski
- 167
- 8
3
votes
3 answers
Calculating moving average/stdev in SAS?
Hye guys,
I included a screenshot to help clarify my problem:
http://i40.tinypic.com/mcrnmv.jpg.
I'm trying to calculate some kind of moving average and moving standard deviation. The thing is I want to calculate the coefficients of variation…

John
- 47
- 1
- 3
- 7
3
votes
3 answers
Why is this sorting algorithm producing inconsistent results across browsers?
I'm trying to implement a (pretty simple indeed) absolute deviation sorting algorithm in Javascript. Absolute deviation is defined as the absolute value of the difference between one element and the average of all elements. For example, given the…

Gordy
- 35
- 3