| Author |
Comment/Response |
Student Konrad
|
01/21/13 4:23pm
Hi,
i'm searching for a function in mathematica 8.0 that is the answer to my problem:
I want that mathematica counts the "movement" of the numbers.
For example (the real data contains more than 10000 numbers) :
How often is there a "growing" scenario and a "shrinking" scenario.
Numbers = {1,2,5,9,4,2,1,10,12,1]
1,2,5,9 <- up, 9,4,2,1 <- down, 1,10,12 <- up
12,1 <- down
So that there are 2 ups and 2 downs.
The function count doesn't solve the my problem. because i can't count for ups and downs.
I appreciate every little hint.
URL: , |
|