54 enum NormType {
L1,
L2_SQR,
L2,
LINF,
JM,
B,
SUBLINEAR,
CS,
DIV,
PF,
K,
KL,
HIK};
60 template <
typename FloatVectorT>
inline float
70 template <
typename FloatVectorT>
inline float
71 L1_Norm (FloatVectorT A, FloatVectorT
B,
int dim);
80 template <
typename FloatVectorT>
inline float
90 template <
typename FloatVectorT>
inline float
91 L2_Norm (FloatVectorT A, FloatVectorT
B,
int dim);
100 template <
typename FloatVectorT>
inline float
101 Linf_Norm (FloatVectorT A, FloatVectorT
B,
int dim);
110 template <
typename FloatVectorT>
inline float
111 JM_Norm (FloatVectorT A, FloatVectorT
B,
int dim);
120 template <
typename FloatVectorT>
inline float
121 B_Norm (FloatVectorT A, FloatVectorT
B,
int dim);
130 template <
typename FloatVectorT>
inline float
140 template <
typename FloatVectorT>
inline float
141 CS_Norm (FloatVectorT A, FloatVectorT
B,
int dim);
150 template <
typename FloatVectorT>
inline float
151 Div_Norm (FloatVectorT A, FloatVectorT
B,
int dim);
162 template <
typename FloatVectorT>
inline float
163 PF_Norm (FloatVectorT A, FloatVectorT
B,
int dim,
float P1,
float P2);
174 template <
typename FloatVectorT>
inline float
175 K_Norm (FloatVectorT A, FloatVectorT
B,
int dim,
float P1,
float P2);
184 template <
typename FloatVectorT>
inline float
185 KL_Norm (FloatVectorT A, FloatVectorT
B,
int dim);
194 template <
typename FloatVectorT>
inline float
195 HIK_Norm (FloatVectorT A, FloatVectorT
B,
int dim);
198 #include <pcl/common/impl/norms.hpp>
float selectNorm(FloatVectorT a, FloatVectorT b, int dim, NormType norm_type)
Method that calculates any norm type available, based on the norm_type variable.
float B_Norm(FloatVectorT a, FloatVectorT b, int dim)
Compute the B norm of the vector between two points.
float KL_Norm(FloatVectorT a, FloatVectorT b, int dim)
Compute the KL between two discrete probability density functions.
float JM_Norm(FloatVectorT a, FloatVectorT b, int dim)
Compute the JM norm of the vector between two points.
float K_Norm(FloatVectorT a, FloatVectorT b, int dim, float P1, float P2)
Compute the K norm of the vector between two points.
float L1_Norm(FloatVectorT a, FloatVectorT b, int dim)
Compute the L1 norm of the vector between two points.
float Linf_Norm(FloatVectorT a, FloatVectorT b, int dim)
Compute the L-infinity norm of the vector between two points.
float L2_Norm(FloatVectorT a, FloatVectorT b, int dim)
Compute the L2 norm of the vector between two points.
float CS_Norm(FloatVectorT a, FloatVectorT b, int dim)
Compute the CS norm of the vector between two points.
float HIK_Norm(FloatVectorT a, FloatVectorT b, int dim)
Compute the HIK norm of the vector between two points.
NormType
Enum that defines all the types of norms available.
float Sublinear_Norm(FloatVectorT a, FloatVectorT b, int dim)
Compute the sublinear norm of the vector between two points.
float Div_Norm(FloatVectorT a, FloatVectorT b, int dim)
Compute the div norm of the vector between two points.
float L2_Norm_SQR(FloatVectorT a, FloatVectorT b, int dim)
Compute the squared L2 norm of the vector between two points.
float PF_Norm(FloatVectorT a, FloatVectorT b, int dim, float P1, float P2)
Compute the PF norm of the vector between two points.