tests
sample_test.hpp
Go to the documentation of this file.
1
// Copyright (C) 2007 Klaas Gadeyne <first dot last at gmail dot com>
2
//
3
// This program is free software; you can redistribute it and/or modify
4
// it under the terms of the GNU General Public License as published by
5
// the Free Software Foundation; either version 2 of the License, or
6
// (at your option) any later version.
7
//
8
// This program is distributed in the hope that it will be useful,
9
// but WITHOUT ANY WARRANTY; without even the implied warranty of
10
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
// GNU General Public License for more details.
12
//
13
// You should have received a copy of the GNU General Public License
14
// along with this program; if not, write to the Free Software
15
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16
//
17
18
#ifndef SAMPLE_TEST_HPP
19
#define SAMPLE_TEST_HPP
20
21
#include <cppunit/extensions/HelperMacros.h>
22
#include <
sample/sample.h
>
23
#include <
sample/weightedsample.h
>
24
#include <string>
25
26
using namespace
std
;
27
using namespace
BFL
;
28
using namespace
MatrixWrapper
;
29
30
class
SampleTest
:
public
CppUnit::TestFixture
31
{
32
CPPUNIT_TEST_SUITE(
SampleTest
);
33
CPPUNIT_TEST( testSampleValue );
34
CPPUNIT_TEST( testSampleDimension );
35
CPPUNIT_TEST( testWeightedSample );
36
CPPUNIT_TEST_SUITE_END();
37
38
ColumnVector
a
;
39
Sample<ColumnVector>
a_sample_cv
;
40
Sample<ColumnVector>
b_sample_cv
;
41
Sample<int>
a_sample_int
;
42
Sample<double>
a_sample_double
;
43
44
WeightedSample<ColumnVector>
a_weighted_sample_cv
;
45
WeightedSample<ColumnVector>
b_weighted_sample_cv
;
46
47
public
:
48
void
setUp();
49
void
tearDown();
50
51
void
testSampleValue();
52
void
testSampleDimension();
53
void
testWeightedSample();
54
55
};
56
57
#endif // SAMPLE_TEST_HPP
SampleTest::a
ColumnVector a
Definition:
sample_test.hpp:38
std
SampleTest::a_sample_double
Sample< double > a_sample_double
Definition:
sample_test.hpp:42
SampleTest::b_sample_cv
Sample< ColumnVector > b_sample_cv
Definition:
sample_test.hpp:40
BFL
Definition:
compare_filters/nonlinearanalyticconditionalgaussianmobile.cpp:24
SampleTest::a_sample_int
Sample< int > a_sample_int
Definition:
sample_test.hpp:41
SampleTest::a_sample_cv
Sample< ColumnVector > a_sample_cv
Definition:
sample_test.hpp:39
SampleTest::a_weighted_sample_cv
WeightedSample< ColumnVector > a_weighted_sample_cv
Definition:
sample_test.hpp:44
MatrixWrapper
Definition:
matrix_wrapper.cpp:7
sample.h
weightedsample.h
SampleTest::b_weighted_sample_cv
WeightedSample< ColumnVector > b_weighted_sample_cv
Definition:
sample_test.hpp:45
BFL::Sample< ColumnVector >
BFL::WeightedSample< ColumnVector >
SampleTest
Definition:
sample_test.hpp:30
bfl
Author(s): Klaas Gadeyne, Wim Meeussen, Tinne Delaet and many others. See web page for a full contributor list. ROS package maintained by Wim Meeussen.
autogenerated on Mon Feb 28 2022 21:56:33