|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.core.util.KielerMath
public final class KielerMath
Mathematics utility class for the KIELER projects.
Nested Class Summary | |
---|---|
static class |
KielerMath.Point
Data class to store two coordinate values. |
Method Summary | |
---|---|
static double |
binomiald(int n,
int k)
The binomial coefficient of integers n and k as double value. |
static long |
binomiall(int n,
int k)
The binomial coefficient of integers n and k as long value. |
static KielerMath.Point[] |
calcBezierPoints(List<KielerMath.Point> controlPoints,
int resultSize)
Calculates a number of points on the Bezier curve defined by the given control points. |
static double |
factd(int x)
The factorial of an integer x as double value. |
static long |
factl(int x)
The factorial of an integer x as long value. |
static double |
maxd(double... values)
Determines the maximum for an arbitrary number of doubles. |
static float |
maxf(float... values)
Determines the maximum for an arbitrary number of floats. |
static int |
maxi(int... values)
Determines the maximum for an arbitrary number of integers. |
static double |
mind(double... values)
Determines the minimum for an arbitrary number of doubles. |
static float |
minf(float... values)
Determines the minimum for an arbitrary number of floats. |
static int |
mini(int... values)
Determines the minimum for an arbitrary number of integers. |
static double |
pow(double a,
int b)
The first argument raised to the power of the second argument. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static long factl(int x)
x
- an integer
public static double factd(int x)
x
- an integer
public static long binomiall(int n, int k)
n
- the upper integerk
- the lower integer
public static double binomiald(int n, int k)
n
- the upper integerk
- the lower integer
public static double pow(double a, int b)
a
- the baseb
- the exponent
public static KielerMath.Point[] calcBezierPoints(List<KielerMath.Point> controlPoints, int resultSize)
controlPoints
- list of control pointsresultSize
- number of returned curve points
public static int maxi(int... values)
values
- integer values
MIN_VALUE
if no values are givenpublic static int mini(int... values)
values
- integer values
MAX_VALUE
if no values are givenpublic static float maxf(float... values)
values
- float values
-MAX_VALUE
if no values are givenpublic static float minf(float... values)
values
- float values
MAX_VALUE
if no values are givenpublic static double maxd(double... values)
values
- double values
-MAX_VALUE
if no values are givenpublic static double mind(double... values)
values
- double values
MAX_VALUE
if no values are given
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |