Changeset 1221 for trunk/yat


Ignore:
Timestamp:
Mar 11, 2008, 11:43:22 AM (13 years ago)
Author:
Peter
Message:

writing size_t directly rather than vector<>::size_type

Location:
trunk/yat/classifier
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/classifier/EnsembleBuilder.h

    r1206 r1221  
    5252
    5353    /**
    54        Type of container used for storing data e.g. MatrixLookup or KernelLookup
     54       Type of container used for storing data. Must be MatrixLookup,
     55       MatrixLookupWeighted, or KernelLookup
    5556     */
    5657    typedef Data data_type;
  • trunk/yat/classifier/Sampler.cc

    r1220 r1221  
    5353  }
    5454
    55   const utility::Index&
    56   Sampler::training_index(std::vector<size_t>::size_type i) const
     55  const utility::Index& Sampler::training_index(size_t i) const
    5756  {
    5857    return training_index_[i];
    5958  }
    6059
    61   const Target&
    62   Sampler::training_target(std::vector<Target>::size_type i) const
     60  const Target& Sampler::training_target(size_t i) const
    6361  {
    6462    return training_target_[i];
    6563  }
    6664
    67   const utility::Index&
    68   Sampler::validation_index(std::vector<size_t>::size_type i) const
     65  const utility::Index& Sampler::validation_index(size_t i) const
    6966  {
    7067    return validation_index_[i];
    7168  }
    7269
    73   const Target&
    74   Sampler::validation_target(std::vector<Target>::size_type i) const
     70  const Target& Sampler::validation_target(size_t i) const
    7571  {
    7672    return validation_target_[i];
  • trunk/yat/classifier/Sampler.h

    r1220 r1221  
    7777    /// @note if state is invalid the result is undefined
    7878    ///
    79     const Target&
    80     training_target(std::vector<Target>::size_type i) const;
     79    const Target& training_target(size_t i) const;
    8180
    8281    ///
     
    8584    /// @note if state is invalid the result is undefined
    8685    ///
    87     const utility::Index&
    88     validation_index(std::vector<size_t>::size_type i) const;
     86    const utility::Index& validation_index(size_t i) const;
    8987
    9088    ///
     
    9391    /// @note if state is invalid the result is undefined
    9492    ///
    95     const Target& validation_target(std::vector<Target>::size_type i) const;
     93    const Target& validation_target(size_t i) const;
    9694
    9795  protected:
Note: See TracChangeset for help on using the changeset viewer.