java.lang.Object
omix.util.math.curves.Bernstein
public class Bernstein extends Object
Solves the bernstein polynomial.
- Since:
- Omix 1.4.2
- Author:
- Dr. Peter Droste, Omix Visualization
-
Constructor Summary
Constructors Constructor Description Bernstein()
-
Method Summary
Modifier and Type Method Description static double
bernsteinPolynomial(int i, int n, double t)
Solves the bernstein polynomial fori
,n
andt
.static double
bernsteinPolynomialDerived(int i, int n, double t)
Solves the derived bernstein polynomial fori
,n
andt
.static double
bernsteinPolynomialSquareDerived(int i, int n, double t)
Solves the second derivative of the bernstein polynomial fori
,n
andt
.
-
Constructor Details
-
Bernstein
public Bernstein()
-
-
Method Details
-
bernsteinPolynomial
public static double bernsteinPolynomial(int i, int n, double t)Solves the bernstein polynomial fori
,n
andt
.
- Parameters:
i
-n
-t
-- Returns:
- solution
-
bernsteinPolynomialDerived
public static double bernsteinPolynomialDerived(int i, int n, double t)Solves the derived bernstein polynomial fori
,n
andt
.
- Parameters:
i
-n
-t
-- Returns:
- solution
-
bernsteinPolynomialSquareDerived
public static double bernsteinPolynomialSquareDerived(int i, int n, double t)Solves the second derivative of the bernstein polynomial fori
,n
andt
.
- Parameters:
i
-n
-t
-- Returns:
- solution
-