Changeset 3531


Ignore:
Timestamp:
Oct 11, 2016, 10:05:10 AM (7 years ago)
Author:
Peter
Message:

remove ws

Location:
trunk/yat/statistics
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/statistics/EuclideanDistance.h

    r2202 r3531  
    3333namespace yat {
    3434namespace statistics {
    35  
     35
    3636  ///
    3737  /// @brief Calculates the Euclidean distance between two points
    38   /// given by elements of ranges. 
     38  /// given by elements of ranges.
    3939  ///
    4040  /// This class is modelling the concept \ref concept_distance.
     
    4242  ///
    4343  struct EuclideanDistance
    44   {   
     44  {
    4545    /**
    4646       \brief Calculates the Euclidean distance between elements of
    4747       two ranges.
    48    
     48
    4949       If elements of both ranges are unweighted the distance is
    5050       calculated as \f$ \sqrt{\sum (x_i-y_i)^2 } \f$, where \f$ x_i
     
    6262    */
    6363    template <typename ForwardIterator1, typename ForwardIterator2>
    64     double operator()(ForwardIterator1 beg1, ForwardIterator1 end1, 
     64    double operator()(ForwardIterator1 beg1, ForwardIterator1 end1,
    6565                      ForwardIterator2 beg2) const
    6666    {
    6767      using utility::weighted_if_any2;
    68       typename weighted_if_any2<ForwardIterator1,ForwardIterator2>::type tag; 
    69       return this->distance(beg1, end1, beg2, tag); 
     68      typename weighted_if_any2<ForwardIterator1,ForwardIterator2>::type tag;
     69      return this->distance(beg1, end1, beg2, tag);
    7070    }
    7171
    7272  private:
    7373    template <typename Iter1, typename Iter2>
    74     double distance (Iter1 beg1,Iter1 end1, Iter2 beg2, 
     74    double distance (Iter1 beg1,Iter1 end1, Iter2 beg2,
    7575                     utility::unweighted_iterator_tag) const
    7676    {
     
    8181
    8282    template <typename Iter1, typename Iter2>
    83     double distance (Iter1 beg1,Iter1 end1, Iter2 beg2, 
     83    double distance (Iter1 beg1,Iter1 end1, Iter2 beg2,
    8484                     utility::weighted_iterator_tag) const
    8585    {
     
    8888      return sqrt(std::distance(beg1,end1)*ap.msd());
    8989    }
    90    
     90
    9191  };
    9292
    9393}}} // of namespace statistics, yat, and theplu
    94    
     94
    9595#endif
  • trunk/yat/statistics/PearsonDistance.h

    r2202 r3531  
    3232
    3333  ///
    34   /// @brief Calculates the %Pearson correlation distance between two points given by elements of ranges. 
     34  /// @brief Calculates the %Pearson correlation distance between two points given by elements of ranges.
    3535  ///
    3636  /// This class is modelling the concept \ref concept_distance.
     
    4141       \brief Calculates the %Pearson correlation distance between
    4242       elements of two ranges.
    43    
     43
    4444       If elements of both ranges are unweighted the distance is
    4545       calculated as \f$ 1-\mbox{C}(x,y) \f$, where \f$ x \f$ and \f$
     
    5555       two ranges are unweighted, the weights for these elements are
    5656       set to unity.
    57     */   
     57    */
    5858    template <typename ForwardIterator1, typename ForwardIterator2>
    59     double operator()(ForwardIterator1 beg1, ForwardIterator1 end1, 
     59    double operator()(ForwardIterator1 beg1, ForwardIterator1 end1,
    6060                      ForwardIterator2 beg2) const
    6161    {
     
    6767
    6868}}} // of namespace statistics, yat, and theplu
    69    
     69
    7070#endif
Note: See TracChangeset for help on using the changeset viewer.