Changeset 1646


Ignore:
Timestamp:
Dec 13, 2008, 9:29:40 AM (15 years ago)
Author:
Jari Häkkinen
Message:

Addresses #466 added linear interpolation classes.

Location:
trunk/yat/regression
Files:
1 edited
2 copied

Legend:

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

    r1645 r1646  
    2020*/
    2121
    22 #include "CSplineInterpolation.h"
     22#include "LinearInterpolation.h"
    2323
    2424#include <gsl/gsl_interp.h>
     
    2929
    3030
    31   CSplineInterpolation::CSplineInterpolation(const utility::VectorBase& x,
    32                                             const utility::VectorBase& y)
    33     : GSLInterpolation(gsl_interp_cspline,x,y)
     31  LinearInterpolation::LinearInterpolation(const utility::VectorBase& x,
     32                                          const utility::VectorBase& y)
     33    : GSLInterpolation(gsl_interp_linear,x,y)
    3434  {
    3535  }
    3636
    3737
    38   CSplineInterpolation::~CSplineInterpolation(void)
     38  LinearInterpolation::~LinearInterpolation(void)
    3939  {
    4040  }
  • trunk/yat/regression/LinearInterpolation.h

    r1645 r1646  
    1 #ifndef _theplu_yat_regression_cspline_interpolation_
    2 #define _theplu_yat_regression_cspline_interpolation_
     1#ifndef _theplu_yat_regression_linear_interpolation_
     2#define _theplu_yat_regression_linear_interpolation_
    33
    44// $Id$
     
    3333
    3434  /**
    35      \brief Cubic spline with natural boundary conditions.
    36 
    37      The resulting curve is piecewise cubic on each interval, with
    38      matching first and second derivatives at the supplied
    39      data-points. The second derivative is chosen to be zero at the
    40      first point and last point.
     35     \brief Linear interpolation.
    4136
    4237     \see Please refer to the base class documentation for genereal
    4338     introduction to the GSL based interpolation methods.
    4439  */
    45   class CSplineInterpolation : public GSLInterpolation
     40  class LinearInterpolation : public GSLInterpolation
    4641  {
    4742
     
    5045       \brief The default constructor
    5146    */
    52     CSplineInterpolation(const utility::VectorBase& x,
    53                          const utility::VectorBase& y);
     47    LinearInterpolation(const utility::VectorBase& x,
     48                        const utility::VectorBase& y);
    5449
    5550    /**
    5651       \brief The destructor
    5752    */
    58     ~CSplineInterpolation(void);
     53    ~LinearInterpolation(void);
    5954
    6055  private:
     
    6257       \brief Copy Constructor. (not implemented)
    6358    */
    64     CSplineInterpolation(const CSplineInterpolation&);
     59    LinearInterpolation(const LinearInterpolation&);
    6560
    6661  };
  • trunk/yat/regression/Makefile.am

    r1645 r1646  
    2424noinst_LTLIBRARIES = libregression.la
    2525libregression_la_SOURCES = CSplineInterpolation.cc GSLInterpolation.cc \
    26   KernelBox.cc KernelTriCube.cc Linear.cc \
     26  KernelBox.cc KernelTriCube.cc Linear.cc LinearInterpolation.cc \
    2727  LinearWeighted.cc Local.cc MultiDimensional.cc      \
    2828  MultiDimensionalWeighted.cc Naive.cc NaiveWeighted.cc   \
     
    3434include_regression_HEADERS = CSplineInterpolation.h GSLInterpolation.h \
    3535  Kernel.h KernelBox.h KernelTriCube.h  \
    36   Linear.h LinearWeighted.h Local.h MultiDimensional.h    \
     36  Linear.h LinearInterpolation.h LinearWeighted.h Local.h MultiDimensional.h    \
    3737  MultiDimensionalWeighted.h Naive.h NaiveWeighted.h    \
    3838  OneDimensional.h OneDimensionalWeighted.h Polynomial.h    \
Note: See TracChangeset for help on using the changeset viewer.