DGtal 1.3.0
|
#include <cstdio>
#include <cmath>
#include <iostream>
#include <algorithm>
#include <vector>
#include <map>
#include <forward_list>
#include <boost/version.hpp>
#include <boost/random/mersenne_twister.hpp>
#include <boost/random/uniform_smallint.hpp>
#include <boost/random/uniform_01.hpp>
#include <boost/random/geometric_distribution.hpp>
#include <boost/random/variate_generator.hpp>
#include "DGtal/base/Common.h"
#include "DGtal/base/LabelledMap.h"
Go to the source code of this file.
Macros | |
#define | BOOST_MAJOR_VERSION (BOOST_VERSION / 100000) |
#define | BOOST_MINOR_VERSION (( BOOST_VERSION / 100) % 1000) |
#define | BOOST_SUBMINOR_VERSION (BOOST_VERSION % 100) |
Functions | |
template<typename MapLXY , unsigned int L, unsigned int X, unsigned int Y> | |
unsigned int | generateData (MapLXY &m, double proba_no_label, double proba_label) |
template<typename MapLXY , unsigned int L, unsigned int X, unsigned int Y> | |
double | sumAllData (MapLXY &m) |
template<typename MapLXY , unsigned int L, unsigned int X, unsigned int Y> | |
double | sumOneData (MapLXY &m, unsigned int l) |
template<typename MapLXY , unsigned int L, unsigned int X, unsigned int Y> | |
unsigned int | locateThreeData (MapLXY &m, unsigned int l1, unsigned int l2, unsigned int l3) |
template<typename MapLXY , unsigned int L, unsigned int X, unsigned int Y> | |
unsigned int | eraseOneData (MapLXY &m, unsigned int l) |
int | main () |
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/.
This file is part of the DGtal library
Definition in file testLabelledMap-benchmark.cpp.
#define BOOST_MAJOR_VERSION (BOOST_VERSION / 100000) |
Definition at line 50 of file testLabelledMap-benchmark.cpp.
#define BOOST_MINOR_VERSION (( BOOST_VERSION / 100) % 1000) |
Definition at line 51 of file testLabelledMap-benchmark.cpp.
#define BOOST_SUBMINOR_VERSION (BOOST_VERSION % 100) |
Definition at line 52 of file testLabelledMap-benchmark.cpp.
unsigned int eraseOneData | ( | MapLXY & | m, |
unsigned int | l | ||
) |
Definition at line 608 of file testLabelledMap-benchmark.cpp.
unsigned int generateData | ( | MapLXY & | m, |
double | proba_no_label, | ||
double | proba_label | ||
) |
Definition at line 522 of file testLabelledMap-benchmark.cpp.
unsigned int locateThreeData | ( | MapLXY & | m, |
unsigned int | l1, | ||
unsigned int | l2, | ||
unsigned int | l3 | ||
) |
Definition at line 591 of file testLabelledMap-benchmark.cpp.
int main | ( | void | ) |
Probability that there is no data at this location.
If there is a possibility to have a data, this probability is used to define a geometric distribution that defines the number of data (ie valid labels) at this place. The smaller, the higher is the expectation. 0.5 means E(X) = 1.
Definition at line 620 of file testLabelledMap-benchmark.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), and DGtal::trace.
double sumAllData | ( | MapLXY & | m | ) |
Definition at line 559 of file testLabelledMap-benchmark.cpp.
double sumOneData | ( | MapLXY & | m, |
unsigned int | l | ||
) |
Definition at line 576 of file testLabelledMap-benchmark.cpp.