Commit 0e03919bdef9ae0517084efee8b19870b923036d

Authored by Benjamin Renard
1 parent 209e557c

Add min, max, var, median, rms, skew, ceil, floor, fix and sign functions

Showing 1 changed file with 52 additions and 28 deletions   Show diff stats
generic_data/Functions/functions.xml
... ... @@ -5,55 +5,66 @@
5 5 <info_brief>average</info_brief>
6 6 <new_kernel>#sampling_classic</new_kernel>
7 7 </function>
8   - <!-- <function name="median_(,)" args="1" kind="time">
  8 + <function name="median_(,)" args="1" kind="time">
9 9 <prompt>input averaging time in secs</prompt>
10 10 <info_brief>median average</info_brief>
  11 + <new_kernel>#median</new_kernel>
11 12 </function>
12 13 <function name="rms_(,)" args="1" kind="time">
13 14 <prompt>input averaging time in secs</prompt>
14 15 <info_brief>root mean square</info_brief>
15   - </function>-->
16   -<!-- <function name="min_(,)" args="1" kind="time">
  16 + <new_kernel>#rms</new_kernel>
  17 + </function>
  18 + <function name="min_(,)" args="1" kind="time">
17 19 <prompt>input window time in secs</prompt>
18   - <info_brief> IDL min() function</info_brief>
  20 + <info_brief>min() function</info_brief>
  21 + <new_kernel>#min</new_kernel>
19 22 </function>
20   - <function name="max_(,)" args="1" params="1" kind="time">
  23 + <function name="max_(,)" args="1" kind="time">
21 24 <prompt>input window time in secs</prompt>
22   - <info_brief> IDL max() function</info_brief>
23   - </function>-->
24   -<!-- <function name="var_(,)" args="1" kind="time">
  25 + <info_brief>max() function</info_brief>
  26 + <new_kernel>#max</new_kernel>
  27 + </function>
  28 + <function name="var_(,)" args="1" kind="time">
25 29 <prompt>input window time in secs</prompt>
26   - <info_brief> IDL variance() function</info_brief>
  30 + <info_brief>variance() function</info_brief>
  31 + <new_kernel>#var</new_kernel>
27 32 </function>
28   - <function name="skew_(,)" args="1" kind="time">
  33 + <function name="skew_(,)" args="1" kind="time">
29 34 <prompt>input window time in secs</prompt>
30   - <info_brief> IDL skewness() function</info_brief>
31   - </function>-->
  35 + <info_brief>skewness() function</info_brief>
  36 + <new_kernel>#skew</new_kernel>
  37 + </function>
32 38 <function name="mean_sm_(,)" args="1" kind="sliding">
33 39 <prompt>input averaging time in secs</prompt>
34 40 <info_brief>average</info_brief>
35   - <new_kernel>#sliding_average</new_kernel>
  41 + <new_kernel>#sliding_average</new_kernel>
36 42 </function>
37   -<!-- <function name="rms_sm_(,)" args="1" kind="sliding">
  43 + <function name="rms_sm_(,)" args="1" kind="sliding">
38 44 <prompt>input averaging time in secs</prompt>
39 45 <info_brief>root mean square</info_brief>
40   - </function>
  46 + <new_kernel>#rms_sm</new_kernel>
  47 + </function>
41 48 <function name="min_sm_(,)" args="1" kind="sliding">
42 49 <prompt>input window time in secs</prompt>
43   - <info_brief> IDL min() function</info_brief>
  50 + <info_brief>min() function</info_brief>
  51 + <new_kernel>#min_sm</new_kernel>
44 52 </function>
45   - <function name="max_sm_(,)" args="1" params="1" kind="sliding">
  53 + <function name="max_sm_(,)" args="1" kind="sliding">
46 54 <prompt>input window time in secs</prompt>
47   - <info_brief> IDL max() function</info_brief>
  55 + <info_brief>max() function</info_brief>
  56 + <new_kernel>#max_sm</new_kernel>
48 57 </function>
49 58 <function name="var_sm_(,)" args="1" kind="sliding">
50 59 <prompt>input window time in secs</prompt>
51   - <info_brief> IDL variance() function</info_brief>
  60 + <info_brief>variance() function</info_brief>
  61 + <new_kernel>#var_sm</new_kernel>
52 62 </function>
53   - <function name="skew_sm_(,)" args="1" kind="sliding">
  63 + <function name="skew_sm_(,)" args="1" kind="sliding">
54 64 <prompt>input window time in secs</prompt>
55   - <info_brief> IDL skewness() function</info_brief>
56   - </function>-->
  65 + <info_brief>skewness() function</info_brief>
  66 + <new_kernel>#skew_sm</new_kernel>
  67 + </function>
57 68 <function name="smooth_(,)" args="1" kind="sliding">
58 69 <prompt>input averaging time in secs</prompt>
59 70 <info_brief>smooths with a boxcar average</info_brief>
... ... @@ -113,6 +124,10 @@
113 124 <info_brief>Arc-tangent</info_brief>
114 125 <new_kernel>atan_2f</new_kernel>
115 126 </function>
  127 + <function name="ceil()" kind="idl">
  128 + <info_brief>Closest integer greater than or equal to its argument</info_brief>
  129 + <new_kernel>Ceil</new_kernel>
  130 + </function>
116 131 <function name="cos()" kind="idl">
117 132 <info_brief>cosine</info_brief>
118 133 <new_kernel>cos</new_kernel>
... ... @@ -121,17 +136,26 @@
121 136 <info_brief>Hyperbolic cosine</info_brief>
122 137 <new_kernel>cosh</new_kernel>
123 138 </function>
124   - <function name="deriv_()" kind="idl">
125   - <info_brief>deriv() function with possibly unequal point spacing</info_brief>
126   - <new_kernel>#deriv</new_kernel>
127   - </function>
  139 + <function name="deriv_()" kind="idl">
  140 + <info_brief>deriv() function with possibly unequal point spacing</info_brief>
  141 + <new_kernel>#deriv</new_kernel>
  142 + </function>
128 143 <function name="exp()" kind="idl">
129 144 <info_brief>Natural exponential function</info_brief>
130 145 <new_kernel>exp</new_kernel>
131 146 </function>
132   -<!-- <function name="fix()" kind="idl">
  147 + <function name="fix()" kind="idl">
133 148 <info_brief>Integer</info_brief>
134   - </function>-->
  149 + <new_kernel>Fix</new_kernel>
  150 + </function>
  151 + <function name="floor()" kind="idl">
  152 + <info_brief>Closest integer less than or equal to its argument</info_brief>
  153 + <new_kernel>Floor</new_kernel>
  154 + </function>
  155 + <function name="sign()" kind="idl">
  156 + <info_brief>Sign</info_brief>
  157 + <new_kernel>Sign</new_kernel>
  158 + </function>
135 159 <function name="sin()" kind="idl">
136 160 <info_brief>Sine</info_brief>
137 161 <new_kernel>sin</new_kernel>
... ...