====== Differences ====== This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
gibson:teaching:spring-2015:math445:lab6 [2015/02/18 20:07] gibson |
gibson:teaching:spring-2015:math445:lab6 [2015/02/25 09:03] (current) spears |
||
---|---|---|---|
Line 21: | Line 21: | ||
\begin{eqnarray*} | \begin{eqnarray*} | ||
- | \text{mean}(x) = \frac{1}{N} \sum_{i=0}^N x_i | + | \text{mean}(x) = \frac{1}{N} \sum_{i=1}^N x_i |
\end{eqnarray*} | \end{eqnarray*} | ||
Line 29: | Line 29: | ||
\begin{eqnarray*} | \begin{eqnarray*} | ||
- | \text{std}(x) = \sqrt{\frac{1}{N} \sum_{i=0}^N (x_i - \bar{x})^2} | + | \text{std}(x) = \sqrt{\frac{1}{N} \sum_{i=1}^N (x_i - \bar{x})^2} |
\end{eqnarray*} | \end{eqnarray*} | ||
Line 37: | Line 37: | ||
\begin{eqnarray*} | \begin{eqnarray*} | ||
- | \text{geomean}(x) = \sqrt[N]{\prod_{i=0}^N |x_i|} | + | \text{geomean}(x) = \sqrt[N]{\prod_{i=1}^N |x_i|} |
\end{eqnarray*} | \end{eqnarray*} | ||
Figure out a good way to test your function and test it. | Figure out a good way to test your function and test it. | ||
| |