java.lang.Object
org.ojalgo.function.polynomial.PolynomialQ128
- All Implemented Interfaces:
DoubleUnaryOperator,Function<RationalNumber,,RationalNumber> UnaryOperator<RationalNumber>,Group,Group.Additive<PolynomialFunction<RationalNumber>>,Operation,Operation.Addition<PolynomialFunction<RationalNumber>>,Operation.Multiplication<PolynomialFunction<RationalNumber>>,Ring<PolynomialFunction<RationalNumber>>,BasicFunction,BasicFunction.Differentiable<RationalNumber,,PolynomialFunction<RationalNumber>> BasicFunction.Integratable<RationalNumber,,PolynomialFunction<RationalNumber>> PolynomialFunction<RationalNumber>,UnaryFunction<RationalNumber>,Access1D<RationalNumber>,Mutate1D,Structure1D
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ojalgo.structure.Access1D
Access1D.Aggregatable<N extends Comparable<N>>, Access1D.Collectable<N extends Comparable<N>,R extends Mutate1D>, Access1D.ElementView<N extends Comparable<N>>, Access1D.SelectionView<N extends Comparable<N>>, Access1D.Sliceable<N extends Comparable<N>>, Access1D.Visitable<N extends Comparable<N>> Nested classes/interfaces inherited from interface org.ojalgo.function.BasicFunction
BasicFunction.Differentiable<N extends Comparable<N>,F extends BasicFunction>, BasicFunction.Integratable<N extends Comparable<N>, F extends BasicFunction>, BasicFunction.PlainUnary<T, R> Nested classes/interfaces inherited from interface org.ojalgo.algebra.Group
Group.Additive<T>, Group.Multiplicative<T>Nested classes/interfaces inherited from interface org.ojalgo.structure.Mutate1D
Mutate1D.Fillable<N extends Comparable<N>>, Mutate1D.Mixable<N extends Comparable<N>>, Mutate1D.Modifiable<N extends Comparable<N>>, Mutate1D.ModifiableReceiver<N extends Comparable<N>>, Mutate1D.Receiver<N extends Comparable<N>>, Mutate1D.SortableNested classes/interfaces inherited from interface org.ojalgo.algebra.Operation
Operation.Addition<T>, Operation.Division<T>, Operation.Multiplication<T>, Operation.Subtraction<T>Nested classes/interfaces inherited from interface org.ojalgo.structure.Structure1D
Structure1D.BasicMapper<T>, Structure1D.IndexMapper<T>, Structure1D.IntIndex, Structure1D.Logical<S extends Structure1D,B extends Structure1D.Logical<S, B>>, Structure1D.LongIndex, Structure1D.LoopCallback -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(PolynomialFunction<RationalNumber> addend) longcount()The total number of elements in this structure.intdegree(NumberContext accuracy) The largest exponent/power of the non-zero (to the given accuracy) coefficients.doubledoubleValue(int power) booleanvoidestimate(List<? extends RationalNumber> x, List<? extends RationalNumber> y) voidestimate(NumberSeries<?> samples) voidget(long power) protected RationalNumbergetDerivativeFactor(int power) protected RationalNumbergetPrimitiveFactor(int power) inthashCode()final RationalNumberintegrate(RationalNumber fromPoint, RationalNumber toPoint) doubleinvoke(double arg) floatinvoke(float arg) final RationalNumberinvoke(RationalNumber arg) multiply(PolynomialFunction<RationalNumber> multiplicand) negate()The additive inverse of this.protected PolynomialQ128newInstance(int size) final PolynomialQ128power(int power) Multiply by itselfpowertimes.voidset(int power, double coefficient) voidset(int power, RationalNumber coefficient) final voidset(long power, Comparable<?> value) final voidintsize()The total number of elements in this structure.toString()static PolynomialQ128wrap(RationalNumber... coefficients) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ojalgo.structure.Access1D
asCollectable1D, asKeyed1D, asList, axpy, byteValue, byteValue, dot, doubleValue, elements, floatValue, floatValue, intValue, intValue, longValue, longValue, nonzeros, select, shortValue, shortValue, supplyTo, toList, toRawCopy1DMethods inherited from interface java.util.function.DoubleUnaryOperator
andThen, composeMethods inherited from interface org.ojalgo.structure.Mutate1D
reset, set, set, set, set, set, set, set, set, set, set, setMethods inherited from interface org.ojalgo.function.polynomial.PolynomialFunction
degreeMethods inherited from interface org.ojalgo.function.UnaryFunction
andThen, apply, applyAsDouble, compose, invoke, invoke, invoke, invoke
-
Field Details
-
ONE
-
DEGREE_ACCURACY
-
-
Constructor Details
-
PolynomialQ128
public PolynomialQ128(int degree)
-
-
Method Details
-
wrap
-
estimate
-
getDerivativeFactor
-
getPrimitiveFactor
-
newInstance
-
integrate
-
invoke
-
multiply
- Specified by:
multiplyin interfaceOperation.Multiplication<N extends Scalar<N>>- Parameters:
multiplicand- The multiplicand- Returns:
this * multiplicand.
-
negate
Description copied from interface:Group.AdditiveThe additive inverse of this.- Returns:
-this.
-
add
- Specified by:
addin interfaceOperation.Addition<N extends Comparable<N>>- Parameters:
addend- What to add- Returns:
this + addend
-
buildDerivative
- Specified by:
buildDerivativein interfaceBasicFunction.Differentiable<N extends Comparable<N>,P extends org.ojalgo.function.polynomial.AbstractPolynomial<N, P>>
-
buildPrimitive
- Specified by:
buildPrimitivein interfaceBasicFunction.Integratable<N extends Comparable<N>,P extends org.ojalgo.function.polynomial.AbstractPolynomial<N, P>>
-
count
public long count()Description copied from interface:Structure1DThe 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:
countin interfaceStructure1D
-
degree
Description copied from interface:PolynomialFunctionThe largest exponent/power of the non-zero (to the given accuracy) coefficients.- Specified by:
degreein interfacePolynomialFunction<N extends Comparable<N>>
-
doubleValue
public double doubleValue(int power) - Specified by:
doubleValuein interfaceAccess1D<N extends Comparable<N>>
-
equals
-
estimate
- Specified by:
estimatein interfacePolynomialFunction<N extends Comparable<N>>
-
estimate
- Specified by:
estimatein interfacePolynomialFunction<N extends Comparable<N>>
-
get
- Specified by:
getin interfaceAccess1D<N extends Comparable<N>>
-
hashCode
public int hashCode() -
invoke
public double invoke(double arg) - Specified by:
invokein interfaceUnaryFunction<N extends Comparable<N>>
-
invoke
public float invoke(float arg) - Specified by:
invokein interfaceUnaryFunction<N extends Comparable<N>>
-
power
Description copied from interface:Operation.MultiplicationMultiply by itselfpowertimes.- Specified by:
powerin interfaceOperation.Multiplication<N extends Comparable<N>>
-
set
- Specified by:
setin interfacePolynomialFunction<N extends Comparable<N>>
-
set
public void set(int power, double coefficient) -
set
- Specified by:
setin interfacePolynomialFunction<N extends Comparable<N>>
-
set
-
size
public int size()Description copied from interface:Structure1DThe total number of elements in this structure.- Specified by:
sizein interfaceStructure1D
-
toString
-