L
Luna Moon
In a 2D array of double(floating point) numbers,
ideally it should have an ordering on two dimensions:
for left to right, the numbers should increase,
from bottom to up, the numbers should increase,
if in the middle of some row and some column, there are valleys and
peaks, which means that the ordering is violated,
I want to detect these violations and set the peaks or valleys to some
predefined constants, say -1.
my question is:
how to do that efficiently in C/C++, also also Matlab?
Basically, the question is how to detect peaks and valleys which
violate the ordering and set them to an alert number, say -1. This is
like "highlighting" ...
Thanks!
ideally it should have an ordering on two dimensions:
for left to right, the numbers should increase,
from bottom to up, the numbers should increase,
if in the middle of some row and some column, there are valleys and
peaks, which means that the ordering is violated,
I want to detect these violations and set the peaks or valleys to some
predefined constants, say -1.
my question is:
how to do that efficiently in C/C++, also also Matlab?
Basically, the question is how to detect peaks and valleys which
violate the ordering and set them to an alert number, say -1. This is
like "highlighting" ...
Thanks!