-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhelp.html
More file actions
219 lines (219 loc) · 6.53 KB
/
Copy pathhelp.html
File metadata and controls
219 lines (219 loc) · 6.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<!doctype html>
<html>
<head>
<title>Virtual Sensor Designer</title>
<link rel="stylesheet" href="css/designtool.css">
<link rel="stylesheet" href="css/help.css" type="text/css" />
<link rel="stylesheet" href="css/navi-menu.css" type="text/css" />
</head>
<body>
<header class="cmu_layout" id="cmu_header">
<div id="title">
Carnegie Mellon University
<br/>
Virtual Sensor Design Tool
</div>
<nav>
<div class="menu">
<ul>
<li>
<a class="hide" id="help" href="designtool.html">DESIGN</a>
</li>
<li>
<a class="hide" href="http://clydeli.github.io/sn-visualization/dev" target="_blank">VISUALIZATION</a>
</li>
<li>
<a class="hide non-link">SPONSORS</a>
<ul>
<li>
<a href="http://www.nasa.gov" target="_blank">NASA</a>
</li>
<li>
<a href="http://www.sap.com/index.epx" target="_blank">SAP</a>
</li>
<li>
<a href="http://www.ericsson.com" target="_blank">ERICSSON</a>
</li>
</ul>
</li>
<li>
<a class="hide non-link">ABOUT US</a>
<ul>
<li>
<a href="faculty.html" target="_blank">FACULTY</a>
</li>
<li>
<a href="team.html" target="_blank">TEAM VIRTUAL</a>
</li>
</ul>
</li>
</ul>
</div>
</nav>
</header>
<h1>Math Constants</h1>
<table>
<tr>
<th>Constants</th><th>Description</th>
</tr>
<tr>
<td>Math.E</td><td>Returns Euler's number (approx. 2.718)</td>
</tr>
<tr>
<td>Math.LN2</td><td>Returns the natural logarithm of 2 (approx. 0.693)</td>
</tr>
<tr>
<td>Math.LN10</td><td>Returns the natural logarithm of 10 (approx. 2.302)</td>
</tr>
<tr>
<td>Math.LOG2E</td><td>Returns the base-2 logarithm of E (approx. 1.442)</td>
</tr>
<tr>
<td>Math.LOG10E</td><td>Returns the base-10 logarithm of E (approx. 0.434)</td>
</tr>
<tr>
<td>Math.PI</td><td>Returns PI (approx. 3.14)</td>
</tr>
<tr>
<td>Math.SQRT1_2</td><td>Returns the square root of 1/2 (approx. 0.707)</td>
</tr>
<tr>
<td>Math.SQRT2</td><td>Returns the square root of 2 (approx. 1.414)</td>
</tr>
</table>
<h1>Math Functions</h1>
<table>
<tr>
<th>Methods</th><th>Description</th>
</tr>
<tr>
<td>Math.abs(x)</td><td>Returns the absolute value of x</td>
</tr>
<tr>
<td>Math.acos(x)</td><td>Returns the arccosine of x, in radians</td>
</tr>
<tr>
<td>Math.asin(x)</td><td>Returns the arcsine of x, in radians</td>
</tr>
<tr>
<td>Math.atan(x)</td><td>Returns the arctangent of x as a numeric value between -PI/2 and PI/2 radians</td>
</tr>
<tr>
<td>Math.atan2(y,x)</td><td>Returns the arctangent of the quotient of its arguments</td>
</tr>
<tr>
<td>Math.ceil(x)</td><td>Returns x, rounded upwards to the nearest integer</td>
</tr>
<tr>
<td>Math.cos(x)</td><td>Returns the cosine of x (x is in radians)</td>
</tr>
<tr>
<td>Math.exp(x)</td><td>Returns the value of E<sup>x</sup></td>
</tr>
<tr>
<td>Math.floor(x)</td><td>Returns x, rounded downwards to the nearest integer</td>
</tr>
<tr>
<td>Math.log(x)</td><td>Returns the natural logarithm (base E) of x</td>
</tr>
<tr>
<td>Math.max(x,y,z,...,n)</td><td>Returns the number with the highest value</td>
</tr>
<tr>
<td>Math.min(x,y,z,...,n)</td><td>Returns the number with the lowest value</td>
</tr>
<tr>
<td>Math.pow(x,y)</td><td>Returns the value of x to the power of y</td>
</tr>
<tr>
<td>Math.random()</td><td>Returns a random number between 0 and 1</td>
</tr>
<tr>
<td>Math.round(x)</td><td>Rounds x to the nearest integer</td>
</tr>
<tr>
<td>Math.sin(x)</td><td>Returns the sine of x (x is in radians)</td>
</tr>
<tr>
<td>Math.sqrt(x)</td><td>Returns the square root of x</td>
</tr>
<tr>
<td>Math.tan(x)</td><td>Returns the tangent of an angle</td>
</tr>
<tr>
<td>ps.math.even(n)</td><td>Returns true if n is an even number</td>
</tr>
<tr>
<td>ps.math.odd(n)</td><td>Returns true if n is an odd number</td>
</tr>
<tr>
<td>ps.math.fact(n)</td><td>Returns the product of all of the arguments</td>
</tr>
<tr>
<td>ps.math.product(n, n, n...)</td><td>Returns the tangent of an angle</td>
</tr>
<tr>
<td>ps.math.randomBetween(floor, ceiling, digits)</td>
<td>Generates a random number between two numbers, defaulting to integers (digits = 0)</td>
</tr>
<tr>
<td>ps.math.randomNormal(mean, stdDev)</td>
<td>Generates normally distributed random numbers for the given mean and stardard deviation. Defaults to mean = 0, stdDev = 1</td>
</tr>
</table>
<h1>Statistics Functions</h1>
<table>
<tr>
<th>Methods</th><th>Description</th>
</tr>
<tr>
<td>Array.sample(samples)</td>
<td>Returns a Array with samples number of random samples from the source Array.
It can be used before other Array methods (e.g. myHugeArray.sample(20000).stdDev())
to significantly improve performance while sacrificing some accuracy.</td>
</tr>
<tr>
<td>Array.sum()</td><td>Sums all values in a Array</td>
</tr>
<tr>
<td>Array.mean()</td><td>Returns the arithmetic mean of the source Array</td>
</tr>
<tr>
<td>Array.median()</td><td>Returns the median value of the Array</td>
</tr>
<tr>
<td>Array.percentile()</td><td>Returns the value at the given percentile for the Array</td>
</tr>
<tr>
<td>Array.variance()</td><td>Returns the Variance of the source Array</td>
</tr>
<tr>
<td>Array.stdDev()</td><td>Returns the Standard Deviation of the source Array</td>
</tr>
<tr>
<td>Array.max()</td><td>Returns the highest numeric value of a Array</td>
</tr>
<tr>
<td>Array.min()</td><td>Returns the lowest numeric value of a Array</td>
</tr>
<tr>
<td>Array.sortNumber(invert)</td><td>Returns the Array sorted ascendingly, or decendingly if invert = true</td>
</tr>
<tr>
<td>Array.histogram()</td>
<td>Returns an object where the key equals the item and the value equals the count of the times
that item occured in the Array</td>
</tr>
<tr>
<td>Array.countByType()</td><td>Returns an object that shows the total count of each type in a Array</td>
</tr>
<tr>
<td>ps.stats.normsinv(p)</td>
<td>returns the inverse of the standard normal cumulative distribution for a given p percentile</td>
</tr>
</table>
<footer class="cmu_layout" id="cmu_footer">
Powered by Team Virtual, 2013
</footer>
</body>
</html>