DGtal
1.5.beta
|
#include <iostream>
#include "DGtal/base/Common.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/geometry/volumes/distance/CSeparableMetric.h"
#include "DGtal/geometry/volumes/distance/CPowerSeparableMetric.h"
#include "DGtal/geometry/volumes/distance/ExactPredicateLpSeparableMetric.h"
#include "DGtal/geometry/volumes/distance/ExactPredicateLpPowerSeparableMetric.h"
#include "DGtal/geometry/volumes/distance/InexactPredicateLpSeparableMetric.h"
Go to the source code of this file.
Functions | |
bool | testMetrics () |
template<typename Value > | |
bool | testInexactMetrics () |
bool | testPowerMetrics () |
bool | testBinarySearch () |
bool | testSpecialCasesLp () |
bool | testSpecialCasesL2 () |
bool | testConcepts () |
int | main (int argc, char **argv) |
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Functions for testing class Metrics.
This file is part of the DGtal library.
Definition in file testMetrics.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 482 of file testMetrics.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::emphase(), DGtal::Trace::endBlock(), DGtal::Trace::info(), testBinarySearch(), testConcepts(), testMetrics(), testPowerMetrics(), testSpecialCasesL2(), testSpecialCasesLp(), and DGtal::trace.
bool testBinarySearch | ( | ) |
Definition at line 287 of file testMetrics.cpp.
References DGtal::Trace::beginBlock(), DGtal::ExactPredicateLpSeparableMetric< TSpace, p, TRawValue >::binarySearchHidden(), DGtal::Trace::endBlock(), DGtal::Trace::info(), and DGtal::trace.
Referenced by main().
bool testConcepts | ( | ) |
Definition at line 471 of file testMetrics.cpp.
Referenced by main().
bool testInexactMetrics | ( | ) |
Definition at line 131 of file testMetrics.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), DGtal::InexactPredicateLpSeparableMetric< TSpace, TValue >::hiddenBy(), DGtal::Trace::info(), and DGtal::trace.
bool testMetrics | ( | ) |
Definition at line 48 of file testMetrics.cpp.
References DGtal::Trace::beginBlock(), DGtal::ExactPredicateLpSeparableMetric< TSpace, p, TRawValue >::closest(), DGtal::ClosestFIRST, DGtal::Trace::endBlock(), DGtal::ExactPredicateLpSeparableMetric< TSpace, p, TRawValue >::hiddenBy(), DGtal::Trace::info(), and DGtal::trace.
Referenced by main().
bool testPowerMetrics | ( | ) |
Definition at line 206 of file testMetrics.cpp.
References DGtal::Trace::beginBlock(), DGtal::ClosestFIRST, DGtal::Trace::endBlock(), DGtal::Trace::info(), and DGtal::trace.
Referenced by main().
bool testSpecialCasesL2 | ( | ) |
Definition at line 426 of file testMetrics.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), DGtal::ExactPredicateLpSeparableMetric< TSpace, p, TRawValue >::hiddenBy(), DGtal::Trace::info(), and DGtal::trace.
Referenced by main().
bool testSpecialCasesLp | ( | ) |
Definition at line 373 of file testMetrics.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), DGtal::ExactPredicateLpSeparableMetric< TSpace, p, TRawValue >::hiddenBy(), DGtal::Trace::info(), and DGtal::trace.
Referenced by main().