PCL
Math.h File Reference
#include <pcl/Defs.h>
#include <pcl/Diagnostics.h>
#include <pcl/Memory.h>
#include <pcl/Selection.h>
#include <pcl/Sort.h>
#include <pcl/Utility.h>
#include <cmath>
#include <cstdlib>
#include <limits>

Go to the source code of this file.

Classes

class  pcl::Fact< T >
 Factorial function. More...
 
class  pcl::Pow10I< T >
 Exponential function 10**n, n being a signed integer. More...
 
class  pcl::Pow2I< T >
 Exponential function 2**n, n being a signed integer. More...
 
struct  pcl::TwoSidedEstimate
 Two-sided descriptive statistical estimate. More...
 

Namespaces

 pcl
 PCL root namespace.
 

Functions

float pcl::Abs (float x) noexcept
 
template<typename T >
constexpr T pcl::Angle (int d, int m, T s) noexcept
 
template<typename T >
constexpr T pcl::Angle (int d, T m) noexcept
 
template<typename T >
constexpr T pcl::ArcCos (T x) noexcept
 
template<typename T >
constexpr T pcl::ArcCosh (T x) noexcept
 
template<typename T >
constexpr T pcl::ArcHav (T x) noexcept
 
template<typename T >
constexpr T pcl::ArcSin (T x) noexcept
 
template<typename T >
constexpr T pcl::ArcSinh (T x) noexcept
 
template<typename T >
constexpr T pcl::ArcTan (T x) noexcept
 
template<typename T >
constexpr T pcl::ArcTan (T y, T x) noexcept
 
template<typename T >
pcl::ArcTan2Pi (T y, T x) noexcept
 
template<typename T >
constexpr T pcl::ArcTanh (T x) noexcept
 
template<typename T >
constexpr T pcl::AsRad (T x) noexcept
 
template<typename T >
double pcl::AvgDev (const T *__restrict__ i, const T *__restrict__ j)
 
template<typename T >
double pcl::AvgDev (const T *__restrict__ i, const T *__restrict__ j, double center) noexcept
 
template<typename T >
double pcl::BendMidvariance (const T *__restrict__ x, const T *__restrict__ xn, double center, double beta=0.2)
 
template<typename T >
double pcl::BiweightMidvariance (const T *__restrict__ x, const T *__restrict__ xn, double center, double sigma, int k=9, bool reducedLength=false) noexcept
 
void PCL_FUNC pcl::CalendarTimeToJD (int &jdi, double &jdf, int year, int month, int day, double dayf=0) noexcept
 
double pcl::CalendarTimeToJD (int year, int month, int day, double dayf=0) noexcept
 
template<typename T >
constexpr T pcl::Ceil (T x) noexcept
 
template<typename T >
constexpr T pcl::Cos (T x) noexcept
 
template<typename T >
constexpr T pcl::Cosh (T x) noexcept
 
template<typename T >
constexpr T pcl::Cotan (T x) noexcept
 
template<typename S1 , typename S2 , typename S3 , typename D >
void pcl::DecimalToSexagesimal (int &sign, S1 &s1, S2 &s2, S3 &s3, const D &d) noexcept
 
template<typename T >
constexpr T pcl::Deg (T x) noexcept
 
template<typename T >
constexpr T pcl::Erf (T x) noexcept
 
template<typename T >
constexpr T pcl::ErfInv (T x) noexcept
 
template<typename T >
constexpr T pcl::Exp (T x) noexcept
 
double pcl::Factorial (int n) noexcept
 
template<typename T >
constexpr T pcl::Floor (T x) noexcept
 
template<typename T >
constexpr T pcl::Frac (T x) noexcept
 
template<typename T >
void pcl::Frexp (T x, T &m, int &p) noexcept
 
uint32 pcl::Hash32 (const void *data, size_type size, uint32 seed=0) noexcept
 
uint64 pcl::Hash64 (const void *data, size_type size, uint64 seed=0) noexcept
 
template<typename T >
constexpr T pcl::Hav (T x) noexcept
 
double pcl::IncompleteBeta (double a, double b, double x, double eps=1.0e-8) noexcept
 
bool pcl::IsFinite (double x) noexcept
 
bool pcl::IsFinite (float x) noexcept
 
int pcl::IsInfinity (double x) noexcept
 
int pcl::IsInfinity (float x) noexcept
 
bool pcl::IsNaN (double x) noexcept
 
bool pcl::IsNaN (float x) noexcept
 
bool pcl::IsNegativeZero (double x) noexcept
 
bool pcl::IsNegativeZero (float x) noexcept
 
void pcl::JDToCalendarTime (int &year, int &month, int &day, double &dayf, double jd) noexcept
 
void PCL_FUNC pcl::JDToCalendarTime (int &year, int &month, int &day, double &dayf, int jdi, double jdf) noexcept
 
template<typename T >
pcl::L1Norm (const T *i, const T *j) noexcept
 
template<typename T >
pcl::L2Norm (const T *i, const T *j) noexcept
 
template<typename T >
constexpr T pcl::Ldexp (T m, int p) noexcept
 
template<typename T >
constexpr T pcl::Ln (T x) noexcept
 
constexpr long double pcl::Ln2 () noexcept
 
double pcl::LnFactorial (int n) noexcept
 
template<typename T >
constexpr T pcl::Log (T x) noexcept
 
constexpr long double pcl::Log2 () noexcept
 
template<typename T >
constexpr T pcl::Log2 (T x) noexcept
 
constexpr long double pcl::Log2e () noexcept
 
constexpr long double pcl::Log2T () noexcept
 
template<typename T >
constexpr T pcl::LogN (T n, T x) noexcept
 
template<typename T >
double pcl::MAD (const T *__restrict__ i, const T *__restrict__ j)
 
template<typename T >
double pcl::MAD (const T *__restrict__ i, const T *__restrict__ j, double center)
 
template<typename T >
constexpr T pcl::MasRad (T x) noexcept
 
int pcl::MaxSSEInstructionSetSupported () noexcept
 
template<typename T >
double pcl::Mean (const T *__restrict__ i, const T *__restrict__ j) noexcept
 
template<class T >
double pcl::Median (const T *__restrict__ i, const T *__restrict__ j)
 
template<typename T >
double pcl::MedianDestructive (T *__restrict__ i, T *__restrict__ j) noexcept
 
template<typename T , class BP >
double pcl::MedianDestructive (T *__restrict__ i, T *__restrict__ j, BP p) noexcept
 
template<typename T >
constexpr T pcl::MinRad (T x) noexcept
 
template<typename T >
constexpr T pcl::Mod (T x, T y) noexcept
 
template<typename T >
constexpr T pcl::Mod2Pi (T x) noexcept
 
template<typename T >
constexpr T pcl::ModPi (T x) noexcept
 
template<typename T >
double pcl::Modulus (const T *__restrict__ i, const T *__restrict__ j) noexcept
 
template<typename T >
pcl::Norm (const T *i, const T *j) noexcept
 
template<typename T , typename P >
pcl::Norm (const T *i, const T *j, const P &p) noexcept
 
template<typename T >
constexpr T pcl::Norm2Pi (T x) noexcept
 
template<typename T >
double pcl::OrderStatistic (const T *__restrict__ i, const T *__restrict__ j, distance_type k)
 
template<typename T , class BP >
double pcl::OrderStatisticDestructive (const T *__restrict__ i, const T *__restrict__ j, distance_type k, BP p) noexcept
 
template<typename T >
double pcl::OrderStatisticDestructive (T *__restrict__ i, T *__restrict__ j, distance_type k) noexcept
 
constexpr long double pcl::Pi () noexcept
 
template<typename T , typename C >
pcl::Poly (T x, C c, int n) noexcept
 
template<typename T >
pcl::Poly (T x, std::initializer_list< T > c) noexcept
 
template<typename T >
TwoSidedEstimate pcl::Pow (const TwoSidedEstimate &e, T x) noexcept
 
template<typename T >
constexpr T pcl::Pow (T x, T y) noexcept
 
template<typename T >
pcl::Pow10 (T x) noexcept
 
template<typename T >
constexpr T pcl::Pow2 (T x) noexcept
 
template<typename T >
pcl::PowI (T x, int n) noexcept
 
template<typename T >
pcl::PowI10 (T x) noexcept
 
template<typename T >
pcl::PowI12 (T x) noexcept
 
template<typename T >
pcl::PowI4 (T x) noexcept
 
template<typename T >
pcl::PowI6 (T x) noexcept
 
template<typename T >
pcl::PowI8 (T x) noexcept
 
template<typename T >
double pcl::Qn (T *__restrict__ x, T *__restrict__ xn)
 
template<typename T >
constexpr T pcl::Rad (T x) noexcept
 
template<typename T >
constexpr T pcl::RadMin (T x) noexcept
 
template<typename T >
constexpr T pcl::RadSec (T x) noexcept
 
template<typename T1 , typename T2 >
void pcl::Rotate (int &x, int &y, T1 sa, T1 ca, T2 xc, T2 yc) noexcept
 
template<typename T1 , typename T2 >
void pcl::Rotate (int64 &x, int64 &y, T1 sa, T1 ca, T2 xc, T2 yc) noexcept
 
template<typename T1 , typename T2 >
void pcl::Rotate (long &x, long &y, T1 sa, T1 ca, T2 xc, T2 yc) noexcept
 
template<typename T , typename T1 , typename T2 >
void pcl::Rotate (T &x, T &y, T1 a, T2 xc, T2 yc) noexcept
 
template<typename T , typename T1 , typename T2 >
void pcl::Rotate (T &x, T &y, T1 sa, T1 ca, T2 xc, T2 yc) noexcept
 
template<typename T >
pcl::RotL (T x, uint32 n) noexcept
 
template<typename T >
pcl::RotR (T x, uint32 n) noexcept
 
double pcl::Round (double x) noexcept
 
float pcl::Round (float x) noexcept
 
long double pcl::Round (long double x) noexcept
 
template<typename T >
pcl::Round (T x, int n) noexcept
 
template<typename T >
int pcl::RoundI (T x) noexcept
 
int64 pcl::RoundI64 (double x) noexcept
 
template<typename T >
int pcl::RoundInt (T x) noexcept
 
int64 pcl::RoundInt64 (double x) noexcept
 
int64 pcl::RoundInt64Arithmetic (double x) noexcept
 
template<typename T >
int pcl::RoundIntArithmetic (T x) noexcept
 
template<typename T >
int pcl::RoundIntBanker (T x) noexcept
 
template<typename T >
constexpr T pcl::SecRad (T x) noexcept
 
template<typename S1 , typename S2 , typename S3 >
double pcl::SexagesimalToDecimal (int sign, const S1 &s1, const S2 &s2=S2(0), const S3 &s3=S3(0)) noexcept
 
template<typename T >
constexpr int pcl::Sign (T x) noexcept
 
template<typename T >
constexpr char pcl::SignChar (T x) noexcept
 
template<typename T >
constexpr T pcl::Sin (T x) noexcept
 
template<typename T >
void pcl::SinCos (T x, T &sx, T &cx) noexcept
 
template<typename T >
constexpr T pcl::Sinh (T x) noexcept
 
template<typename T >
double pcl::Sn (T *__restrict__ x, T *__restrict__ xn)
 
template<typename T >
void pcl::Split (T x, T &i, T &f) noexcept
 
TwoSidedEstimate pcl::Sqrt (const TwoSidedEstimate &e) noexcept
 
template<typename T >
constexpr T pcl::Sqrt (T x) noexcept
 
template<typename T >
double pcl::StableAvgDev (const T *__restrict__ i, const T *__restrict__ j)
 
template<typename T >
double pcl::StableAvgDev (const T *__restrict__ i, const T *__restrict__ j, double center) noexcept
 
template<typename T >
double pcl::StableMean (const T *__restrict__ i, const T *__restrict__ j) noexcept
 
template<typename T >
double pcl::StableModulus (const T *__restrict__ i, const T *__restrict__ j) noexcept
 
template<typename T >
double pcl::StableSum (const T *__restrict__ i, const T *__restrict__ j) noexcept
 
template<typename T >
double pcl::StableSumOfSquares (const T *__restrict__ i, const T *__restrict__ j) noexcept
 
template<typename T >
double pcl::StdDev (const T *__restrict__ i, const T *__restrict__ j) noexcept
 
template<typename T >
double pcl::StdDev (const T *__restrict__ i, const T *__restrict__ j, double center) noexcept
 
template<typename T >
double pcl::Sum (const T *__restrict__ i, const T *__restrict__ j) noexcept
 
template<typename T >
double pcl::SumOfSquares (const T *__restrict__ i, const T *__restrict__ j) noexcept
 
template<typename T >
constexpr T pcl::Tan (T x) noexcept
 
template<typename T >
constexpr T pcl::Tanh (T x) noexcept
 
template<typename T >
double pcl::TrimmedMean (const T *__restrict__ i, const T *__restrict__ j, distance_type l=1, distance_type h=1)
 
template<typename T >
double pcl::TrimmedMeanDestructive (T *__restrict__ i, T *__restrict__ j, distance_type l=1, distance_type h=1) noexcept
 
template<typename T >
double pcl::TrimmedMeanOfSquares (const T *__restrict__ i, const T *__restrict__ j, distance_type l=1, distance_type h=1)
 
template<typename T >
double pcl::TrimmedMeanOfSquaresDestructive (T *__restrict__ i, T *__restrict__ j, distance_type l=1, distance_type h=1) noexcept
 
template<typename T >
pcl::Trunc (T x) noexcept
 
template<typename T >
int pcl::TruncI (T x) noexcept
 
template<typename T >
int64 pcl::TruncI64 (T x) noexcept
 
template<typename T >
int pcl::TruncInt (T x) noexcept
 
template<typename T >
int64 pcl::TruncInt64 (T x) noexcept
 
constexpr long double pcl::TwoPi () noexcept
 
template<typename T >
TwoSidedEstimate pcl::TwoSidedAvgDev (const T *__restrict__ i, const T *__restrict__ j)
 
template<typename T >
TwoSidedEstimate pcl::TwoSidedAvgDev (const T *__restrict__ i, const T *__restrict__ j, double center) noexcept
 
template<typename T >
TwoSidedEstimate pcl::TwoSidedBiweightMidvariance (const T *__restrict__ x, const T *__restrict__ xn, double center, const TwoSidedEstimate &sigma, int k=9, bool reducedLength=false) noexcept
 
template<typename T >
TwoSidedEstimate pcl::TwoSidedMAD (const T *__restrict__ i, const T *__restrict__ j)
 
template<typename T >
TwoSidedEstimate pcl::TwoSidedMAD (const T *__restrict__ i, const T *__restrict__ j, double center)
 
template<typename T >
constexpr T pcl::UasRad (T x) noexcept
 
template<typename T >
double pcl::Variance (const T *__restrict__ i, const T *__restrict__ j) noexcept
 
template<typename T >
double pcl::Variance (const T *__restrict__ i, const T *__restrict__ j, double center) noexcept