ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
math.h File Reference
#include <algorithm>
#include <cmath>
#include <complex>
#include <limits>
#include <list>
#include <stdexcept>
#include <vector>
#include "util/logging.h"
Include dependency graph for math.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 colmap
 
 colmap::internal
 

Macros

#define M_PI   3.14159265358979323846264338327950288
 

Functions

template<typename T >
int colmap::SignOfNumber (const T val)
 
bool colmap::IsNaN (const float x)
 
bool colmap::IsNaN (const double x)
 
bool colmap::IsInf (const float x)
 
bool colmap::IsInf (const double x)
 
template<typename T >
colmap::Clip (const T &value, const T &low, const T &high)
 
float colmap::DegToRad (const float deg)
 
double colmap::DegToRad (const double deg)
 
float colmap::RadToDeg (const float rad)
 
double colmap::RadToDeg (const double rad)
 
template<typename T >
double colmap::Median (const std::vector< T > &elems)
 
template<typename T >
double colmap::Mean (const std::vector< T > &elems)
 
template<typename T >
double colmap::Variance (const std::vector< T > &elems)
 
template<typename T >
double colmap::StdDev (const std::vector< T > &elems)
 
template<typename T >
bool colmap::AnyLessThan (std::vector< T > elems, T threshold)
 
template<typename T >
bool colmap::AnyGreaterThan (std::vector< T > elems, T threshold)
 
template<class Iterator >
bool colmap::NextCombination (Iterator first, Iterator middle, Iterator last)
 
template<typename T >
colmap::Sigmoid (const T x, const T alpha=1)
 
template<typename T >
colmap::ScaleSigmoid (T x, const T alpha=1, const T x0=10)
 
size_t colmap::NChooseK (const size_t n, const size_t k)
 
template<typename T1 , typename T2 >
T2 colmap::TruncateCast (const T1 value)
 
template<typename T >
colmap::Percentile (const std::vector< T > &elems, const double p)
 
template<class Iterator >
bool colmap::internal::NextCombination (Iterator first1, Iterator last1, Iterator first2, Iterator last2)
 

Macro Definition Documentation

◆ M_PI

#define M_PI   3.14159265358979323846264338327950288

Definition at line 21 of file math.h.