|
Carrot2 v3.6.0-SNAPSHOT
API Documentation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.util.MathUtils
public final class MathUtils
Some simple mathematical computation utility methods.
| Method Summary | |
|---|---|
static double |
arithmeticMean(double v1,
double v2,
double w1,
double w2)
Returns the arithmetic mean of v1 and v2, weighting them
by w1 and w2, respectively. |
static double |
harmonicMean(double v1,
double v2)
Returns the harmonic mean of v1 and v2, giving both
arguments equal weight. |
static double |
harmonicMean(double v1,
double v2,
double w1,
double w2)
Returns the harmonic mean of v1 and v2, weighting them by
w1 and w2, respectively. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static double harmonicMean(double v1,
double v2)
v1 and v2, giving both
arguments equal weight.
public static double harmonicMean(double v1,
double v2,
double w1,
double w2)
v1 and v2, weighting them by
w1 and w2, respectively.
public static double arithmeticMean(double v1,
double v2,
double w1,
double w2)
v1 and v2, weighting them
by w1 and w2, respectively.
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||