Changeset 2141


Ignore:
Timestamp:
Jan 12, 2010, 11:03:32 PM (12 years ago)
Author:
Peter
Message:

adding concept Data Iterator. fixes #514

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/concepts.doxygen

    r2119 r2141  
    22//
    33// Copyright (C) 2008 Jari Häkkinen, Peter Johansson, Markus Ringnér
    4 // Copyright (C) 2009 Peter Johansson
     4// Copyright (C) 2009, 2010 Peter Johansson
    55//
    66// This file is part of the yat library, http://dev.thep.lu.se/yat
     
    2626
    2727- \subpage concept_container_2d
     28- \subpage concept_data_iterator
    2829- \subpage concept_distance
    2930- \subpage concept_mutable_container_2d
     
    426427
    427428*/
     429
     430/**
     431\page concept_data_iterator Data Iterator
     432
     433\section Description
     434
     435\ref concept_data_iterator is an iterator that comes in two shapes:
     436
     437  - it is either a \ref concept_weighted_iterator with value type
     438convertible to theplu::yat::utility::DataWeight
     439  - it is an unweighted iterator with value type
     440convertible to \c double.
     441
     442\section Implementations
     443
     444Examples of concept \ref concept_data_iterator include:
     445  - theplu::yat::utility::Matrix::iterator,
     446  - theplu::yat::classifier::MatrixLookup::const_iterator,
     447  - theplu::yat::classifier::MatrixLookupWeighted::const_iterator
     448*/
  • trunk/yat/normalizer/qQuantileNormalizer.h

    r2119 r2141  
    44/*
    55  Copyright (C) 2009 Jari Häkkinen, Peter Johansson
     6  Copyright (C) 2010 Peter Johansson
    67
    78  This file is part of the yat library, http://dev.thep.lu.se/yat
     
    106107       \b Type \b Requirements:
    107108       - \c ForwardIterator is a model of \forward_iterator.
    108        - \c ForwardIterator is either a \ref concept_weighted_iterator
    109          or unweighted with value type convertible to \c double.
    110 
     109       - \c ForwardIterator is a \ref concept_data_iterator
    111110    */
    112111    template<typename ForwardIterator>
     
    130129       \b Type Requirements:
    131130       - \c RandomAccessIterator1 is a model of \random_access_iterator
    132        - \c RandomAccessIterator1 is either a \ref
    133          concept_weighted_iterator or unweighted with value type
    134          convertible to \c double.
     131       - \c RandomAccessIterator1 is a \ref concept_data_iterator
    135132       - \c RandomAccessIterator1's value type is convertible to
    136133         \c RandomAccessIterator2's value type
  • trunk/yat/statistics/utility.h

    r2119 r2141  
    99  Copyright (C) 2006 Jari Häkkinen, Peter Johansson, Markus Ringnér
    1010  Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson
    11   Copyright (C) 2009 Peter Johansson
     11  Copyright (C) 2009, 2010 Peter Johansson
    1212
    1313  This file is part of the yat library, http://dev.thep.lu.se/yat
     
    120120  /// can be const_iterators.
    121121  ///
    122   /// Requirements: \c T should either be unweighted with value type
    123   /// convertible to \c double or \c T should be weighted with value
    124   /// type convertible to utility::DataWeight
     122  /// Requirements: \c T should be a \ref concept_data_iterator
    125123  ///
    126124  /// @return median of range
Note: See TracChangeset for help on using the changeset viewer.