| Author |
Comment/Response |
gk
|
10/25/08 1:13pm
Hello,
I have a list of data, about 16,000 elements all decimal values. I need to count the number of sign changes that occur. I have tried the following command, but the kernal keeps shutting down. Any suggestions would be helpful.
np = Count[
NestList[Rest, data,
Length[data]], { _?Negative, _?Positive, ___ }]
pn = Count[
NestList[Rest, data, Length[data]], {_?Positive, _?Negative, ___ }]
pn + np
thanks
URL: , |
|