modify tamura thominus, to see i is at peak or valley. It can judge that which one is start, peak or valley.