public class VectorDPFacade extends ArrayRealVector implements DeviationProvider
This class is a facade for the use of vectors.
DeviationProvider
,
Serialized FormRealVector.Entry
Constructor and Description |
---|
VectorDPFacade(double[] data)
simple constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
computeDeviationTo(boolean absolute,
DeviationProvider obj,
boolean positive)
computes the relative deviation between the stored vector value and the given one.
|
add, addToEntry, append, append, append, checkVectorDimensions, checkVectorDimensions, combine, combineToSelf, copy, dotProduct, 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
checkIndex, checkIndices, cosine, getMaxIndex, getMaxValue, getMinIndex, getMinValue, iterator, mapAdd, mapDivide, mapMultiply, mapSubtract, projection, unitize, unitVector, unmodifiableRealVector
public VectorDPFacade(double[] data)
data
- the vectors componentsArrayRealVector.ArrayRealVector(double[])
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 otherwiseEphemerisComparatorRuntimeException
- if the DeviationProvider is not of the correct typeDeviationProvider.computeDeviationTo(boolean,
DeviationProvider, boolean)
Copyright © 2019 CNES. All Rights Reserved.