|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object JSci.maths.polynomials.RealLagrangeBasis
The Lagrange Basis for real polynomials. For a given set of sampling points {x_1, ..., x_n}, the corresponding Lagrange polynomials are L_k = \kronecker_kj \forall j=1..n. The explicit form is L_k= \prod_{j=0, j\neq k}^n \frac{t-t_j}{t_k-t_j}
Field Summary | |
protected int |
_dim
|
protected double[] |
_samplingsX
|
Constructor Summary | |
protected |
RealLagrangeBasis()
|
|
RealLagrangeBasis(double[] samplings)
Creates a new RealLagrangeBasis object. |
|
RealLagrangeBasis(Field.Member[] samplings)
Creates a new instance of LagrangeBasis for given sampling points |
Method Summary | |
protected void |
buildBasis()
|
int |
dimension()
The dimension ( # of sampling points) |
Polynomial |
getBasisVector(int k)
The basis vector as described above |
Field.Member[] |
getSamplingPoints()
The sampling points used in constructor |
RealPolynomial |
superposition(double[] c)
Same as above, but type-safe. |
Polynomial |
superposition(Field.Member[] coeff)
Make a superposition of basis-vectors for a given set of coefficients. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected double[] _samplingsX
protected int _dim
Constructor Detail |
public RealLagrangeBasis(Field.Member[] samplings)
public RealLagrangeBasis(double[] samplings)
samplings
- protected RealLagrangeBasis()
Method Detail |
public Polynomial getBasisVector(int k)
getBasisVector
in interface PolynomialBasis
k
- public int dimension()
dimension
in interface PolynomialBasis
public Field.Member[] getSamplingPoints()
getSamplingPoints
in interface PolynomialBasis
public Polynomial superposition(Field.Member[] coeff)
superposition
in interface PolynomialBasis
coeff
- in this case the values of the interpolation problem
public RealPolynomial superposition(double[] c)
protected void buildBasis()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |