|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.math3.linear.RealVector org.apache.commons.math3.linear.ArrayRealVector fr.cnes.sirius.patrius.tools.ephemerisComparator.VectorDPFacade
public class VectorDPFacade
This class is a facade for the use of vectors.
DeviationProvider
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.commons.math3.linear.RealVector |
---|
RealVector.Entry, RealVector.SparseEntryIterator |
Constructor Summary | |
---|---|
VectorDPFacade(double[] data)
simple constructor. |
Method Summary | |
---|---|
double |
computeDeviationTo(boolean absolute,
DeviationProvider obj,
boolean positive)
computes the relative deviation between the stored vector value and the given one. |
Methods inherited from class org.apache.commons.math3.linear.ArrayRealVector |
---|
add, addToEntry, append, append, append, checkVectorDimensions, checkVectorDimensions, combine, combineToSelf, copy, dotProduct, ebeDivide, ebeMultiply, equals, getDataRef, getDimension, getDistance, getEntry, getL1Distance, getL1Norm, getLInfDistance, getLInfNorm, getNorm, getSubVector, hashCode, isInfinite, isNaN, map, mapAddToSelf, mapDivideToSelf, mapMultiplyToSelf, mapSubtractToSelf, mapToSelf, outerProduct, set, setEntry, setSubVector, setSubVector, subtract, toArray, toString, walkInDefaultOrder, walkInDefaultOrder, walkInDefaultOrder, walkInDefaultOrder, walkInOptimizedOrder, walkInOptimizedOrder, walkInOptimizedOrder, walkInOptimizedOrder |
Methods inherited from class org.apache.commons.math3.linear.RealVector |
---|
checkIndex, checkIndices, cosine, getMaxIndex, getMaxValue, getMinIndex, getMinValue, iterator, mapAdd, mapDivide, mapMultiply, mapSubtract, projection, sparseIterator, unitize, unitVector, unmodifiableRealVector |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public VectorDPFacade(double[] data)
data
- the vectors componentsArrayRealVector.ArrayRealVector(double[])
Method Detail |
---|
public final double computeDeviationTo(boolean absolute, DeviationProvider obj, boolean positive)
computeDeviationTo
in interface DeviationProvider
absolute
- absolute or relative comparisonobj
- the DeviationProvider that should be a VectorDPFacadepositive
- true if absolute value of deviations, false otherwise
EphemerisComparatorRuntimeException
- if the DeviationProvider is not of the correct typeDeviationProvider.computeDeviationTo(boolean,
DeviationProvider, boolean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |