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

Fixes #434. Authors are now ignored in the plot if and only if plot
would be y=0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.7-stable/lib/Stats.h

    r994 r998  
    233233    unsigned int get_back(const Author2Vector&, std::string user) const;
    234234    void load(std::istream& is, Author2Vector& m);
     235    /**
     236       Finds the largets element by iterating through the entire
     237       vector. Inherited classes should implement their own version
     238       when it is possible to get the largest element in faster than
     239       in linear time.
     240
     241       \return the largest largest element in \a v.
     242    */
     243    virtual unsigned int max_element(const std::vector<unsigned int>& v) const;
     244
    235245    void print(std::ostream& os, const Author2Vector& m) const;
    236246
Note: See TracChangeset for help on using the changeset viewer.