Ignore:
Timestamp:
Dec 13, 2008, 10:28:39 AM (13 years ago)
Author:
Jari Häkkinen
Message:

Addresses #466. Added more GSL functionality, added constructor tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/interpolation_test.cc

    r1645 r1648  
    22
    33/*
    4   Copyright (C) 2007 Jari Häkkinen
     4  Copyright (C) 2008 Jari Häkkinen
    55
    66  This file is part of the yat library, http://dev.thep.lu.se/yat
     
    2222#include "Suite.h"
    2323
     24#include "yat/regression/AkimaInterpolation.h"
     25#include "yat/regression/AkimaPeriodicInterpolation.h"
    2426#include "yat/regression/CSplineInterpolation.h"
     27#include "yat/regression/CSplinePeriodicInterpolation.h"
     28#include "yat/regression/LinearInterpolation.h"
     29#include "yat/regression/PolynomialInterpolation.h"
    2530#include "yat/utility/Vector.h"
    2631#include "yat/utility/VectorConstView.h"
     
    3136{
    3237  using namespace theplu::yat;
     38  using namespace theplu::yat::regression;
    3339
    3440  test::Suite suite(argc, argv);
     
    5359  y(0)=100; y(1)= 97; y(2)=111; y(3)=120; y(4)=117; y(5)=103;
    5460
    55   regression::CSplineInterpolation cspline(x,y);
     61  CSplineInterpolation cspline(x,y);
    5662
    5763  utility::Vector w(11);
     
    7581    }
    7682
     83  // lazy testing, at least try to create the objects
     84  AkimaInterpolation(x,y);
     85  AkimaPeriodicInterpolation(x,y);
     86  CSplinePeriodicInterpolation(x,y);
     87  LinearInterpolation(x,y);
     88  PolynomialInterpolation(x,y);
     89
    7790  return suite.return_value();
    7891}
Note: See TracChangeset for help on using the changeset viewer.