|
OTB
9.0.0
Orfeo Toolbox
|
Go to the documentation of this file.
23 #ifndef otbEuclideanDistanceMetricWithMissingValue_h
24 #define otbEuclideanDistanceMetricWithMissingValue_h
50 template <
class TVector>
69 typedef typename TVector::ValueType
ValueType;
72 double Evaluate(
const TVector& x)
const override
74 return ::std::sqrt(Superclass::Evaluate(x));
78 double Evaluate(
const TVector& x1,
const TVector& x2)
const override
80 return ::std::sqrt(Superclass::Evaluate(x1, x2));
87 return ::std::sqrt(Superclass::Evaluate(a, b));
94 return Superclass::IsWithinRange(x, radius);
itk::SmartPointer< Self > Pointer
Superclass::MeasurementVectorSizeType MeasurementVectorSizeType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
otb::Statistics::EuclideanDistanceMetricWithMissingValuePow2< TVector > Superclass
EuclideanDistanceMetricWithMissingValue()
double Evaluate(const TVector &x) const override
itk::SmartPointer< const Self > ConstPointer
Superclass::MeasurementVectorSizeType MeasurementVectorSizeType
TVector::ValueType ValueType
~EuclideanDistanceMetricWithMissingValue() override
Euclidean distance function facing missing value.
Euclidean comparison distance function facing missing value. The square root is not performed in this...
double Evaluate(const TVector &x1, const TVector &x2) const override
EuclideanDistanceMetricWithMissingValue Self
double Evaluate(const ValueType &a, const ValueType &b) const
bool IsWithinRange(const TVector &x, const double radius) const