Documentation of 'jsci.maths.polynomials.RealLagrangeBasis' Java class
RealLagrangeBasis
jsci.maths.polynomials

Class RealLagrangeBasis

  • All Implemented Interfaces:
    PolynomialBasis
    Direct Known Subclasses:
    ChebychevBasis


    public class RealLagrangeBasis
    extends java.lang.Object
    implements PolynomialBasis
    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}
    • Constructor Detail

      • RealLagrangeBasis

        public RealLagrangeBasis(Field.Member[] samplings)
        Creates a new instance of LagrangeBasis for given sampling points
      • RealLagrangeBasis

        public RealLagrangeBasis(double[] samplings)
        Creates a new RealLagrangeBasis object.
        Parameters:
        samplings -
    • Method Detail

      • dimension

        public int dimension()
        The dimension ( # of sampling points)
        Specified by:
        dimension in interface PolynomialBasis
        Returns:
        the dimension
      • superposition

        public Polynomial superposition(Field.Member[] coeff)
        Make a superposition of basis-vectors for a given set of coefficients. Due to the properties of a lagrange base, the result is the interpolating polynomial with values coeff[k] at sampling point k
        Specified by:
        superposition in interface PolynomialBasis
        Parameters:
        coeff - in this case the values of the interpolation problem
        Returns:
        the interpolating polynomial
      • superposition

        public RealPolynomial superposition(double[] c)
        Same as above, but type-safe.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.