Changeset 1450


Ignore:
Timestamp:
Aug 28, 2008, 10:28:09 PM (13 years ago)
Author:
Peter
Message:

adding reset function in regression::Local

Location:
trunk/yat/regression
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/regression/Local.cc

    r1437 r1450  
    130130  }
    131131
     132
     133  void Local::reset(void)
     134  {
     135    data_.clear();
     136    x_.resize(0);
     137    y_predicted_.resize(0);
     138    y_err_.resize(0);
     139  }
     140
     141
    132142  const utility::Vector& Local::x(void) const
    133143  {
  • trunk/yat/regression/Local.h

    r1437 r1450  
    7575    void fit(const size_t step_size, const size_t nof_points);
    7676
     77    /**
     78       \brief Set everything to zero
     79
     80       \since New in yat 0.5
     81     */
     82    void reset(void);
     83
    7784    ///
    7885    /// @return x-values where fitting was performed.
Note: See TracChangeset for help on using the changeset viewer.