?? runs.c
字號:
/*# proc: ramp_int_runs - takes a list of integers, thresholds them into# proc: binary values and assigns incrementally accumulated# proc: run length vales into a new list.*/#include <stdio.h>ramp_int_runs(bins, rlist, blen, thresh)int *bins, **rlist;int blen, thresh;{ int i, count; calloc_int(rlist, blen, "ramp_int_runs : rlist"); count = 0; for(i = 0; i < blen; i++){ if(bins[i] > thresh) (*rlist)[i] = ++count; else count = 0; }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -