Index: trunk/yat/statistics/EuclideanDistance.h
===================================================================
--- trunk/yat/statistics/EuclideanDistance.h (revision 1092)
+++ trunk/yat/statistics/EuclideanDistance.h (revision 1093)
@@ -37,12 +37,20 @@
///
- /// @brief Calculates the Euclidean distance between two points stored in 1-dimensional containers. Implements the concept \ref concept_distance.
+ /// @brief Calculates the Euclidean distance between two points
+ /// stored in 1-dimensional containers. Implements the concept \ref
+ /// concept_distance.
///
///
struct EuclideanDistance
{
- ///
- /// @brief Calculates the Euclidean distance between two ranges.
- ///
+ /**
+ \brief Calculates the Euclidean distance between two ranges.
+
+ If both ranges are unweighted the distance is calculated as \f$
+ \sqrt{\sum (x_i-y_i)^2 } \f$
+
+ Else distance is calculated as \f$ N \frac{\sum
+ w_xw_y(x-y)^2}{\sum w_xw_y} \f$
+ */
template
double operator()