public class Math extends Object
Current functions available are:
| Modifier | Constructor and Description |
|---|---|
protected |
Math() |
| Modifier and Type | Method and Description |
|---|---|
static double |
average(long n,
double sum)
Calculate the average from an amount of values n and a sum.
|
static double |
stdDeviation(long n,
double sum,
double sumOfSquares)
Calculate the standard deviation from an amount of values n, a sum and a sum of squares.
|
public static double average(long n,
double sum)
n - the number of values measured.sum - the total sum of values measured.public static double stdDeviation(long n,
double sum,
double sumOfSquares)
n - the number of values measured.sum - the total sum of values measured.sumOfSquares - the total sum of squares of the values measured.Copyright © 2013 Immobilien Scout GmbH. All Rights Reserved.