|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.stanford.hci.r3.util.MathUtils
public class MathUtils
Useful math functions. :)
This software is distributed under the BSD License.
Constructor Summary | |
---|---|
MathUtils()
|
Method Summary | |
---|---|
static double |
average(double... vals)
If you think your values will overflow this operation, then roll your own |
static double |
distance(double x1,
double y1,
double x2,
double y2)
|
static int |
rint(double val)
|
static double |
standardDeviation(double... vals)
Check out how dispersed a set of data are... |
static double |
standardDeviation(java.lang.Double... vals)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MathUtils()
Method Detail |
---|
public static double average(double... vals)
vals
-
public static double distance(double x1, double y1, double x2, double y2)
x1
- y1
- x2
- y2
-
public static int rint(double val)
val
-
public static double standardDeviation(double... vals)
vals
-
public static double standardDeviation(java.lang.Double... vals)
vals
-
|
Copyright 2006 Stanford University | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |