Class AbstractPolynomial<N extends java.lang.Comparable<N>,​P extends AbstractPolynomial<N,​P>>

    • Constructor Detail

      • AbstractPolynomial

        AbstractPolynomial​(BasicArray<N> coefficients)
    • Method Detail

      • count

        public long count()
        Description copied from interface: Structure1D
        The total number of elements in this structure.

        You only need to implement this method if the structure can contain more than Integer.MAX_VALUE elements.

        Specified by:
        count in interface Structure1D
      • doubleValue

        public double doubleValue​(int power)
        Specified by:
        doubleValue in interface Access1D<N extends java.lang.Comparable<N>>
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • estimate

        public void estimate​(java.util.List<? extends N> x,
                             java.util.List<? extends N> y)
        Specified by:
        estimate in interface PolynomialFunction<N extends java.lang.Comparable<N>>
      • get

        public N get​(long power)
        Specified by:
        get in interface Access1D<N extends java.lang.Comparable<N>>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • invoke

        public double invoke​(double arg)
        Specified by:
        invoke in interface UnaryFunction<N extends java.lang.Comparable<N>>
      • invoke

        public float invoke​(float arg)
        Specified by:
        invoke in interface UnaryFunction<N extends java.lang.Comparable<N>>
      • set

        public void set​(int power,
                        double coefficient)
        Specified by:
        set in interface Mutate1D
      • set

        public void set​(int power,
                        N coefficient)
        Specified by:
        set in interface PolynomialFunction<N extends java.lang.Comparable<N>>
      • set

        public final void set​(long power,
                              java.lang.Comparable<?> value)
        Specified by:
        set in interface Mutate1D
      • size

        public int size()
        Description copied from interface: Structure1D
        The total number of elements in this structure.
        Specified by:
        size in interface Structure1D
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getDerivativeFactor

        protected abstract N getDerivativeFactor​(int power)
      • getPrimitiveFactor

        protected abstract N getPrimitiveFactor​(int power)
      • newInstance

        protected abstract P newInstance​(int size)
      • norm

        double norm​(int power)
      • one

        abstract P one()