PCL
|
Two-sided descriptive statistical estimate. More...
#include <Math.h>
Public Member Functions | |
TwoSidedEstimate ()=default | |
template<typename T > | |
TwoSidedEstimate (const T &x) | |
template<typename T1 , typename T2 > | |
TwoSidedEstimate (const T1 &l, const T2 &h) | |
TwoSidedEstimate (const TwoSidedEstimate &)=default | |
TwoSidedEstimate (TwoSidedEstimate &&)=default | |
bool | IsValid () const noexcept |
double | Mean () const noexcept |
operator double () const noexcept | |
TwoSidedEstimate | operator* (double x) const noexcept |
TwoSidedEstimate & | operator*= (double x) noexcept |
TwoSidedEstimate | operator/ (const TwoSidedEstimate &e) const noexcept |
TwoSidedEstimate | operator/ (double x) const noexcept |
TwoSidedEstimate & | operator/= (const TwoSidedEstimate &e) noexcept |
TwoSidedEstimate & | operator/= (double x) noexcept |
TwoSidedEstimate & | operator= (const TwoSidedEstimate &)=default |
TwoSidedEstimate & | operator= (TwoSidedEstimate &&)=default |
double | Total () const noexcept |
Public Attributes | |
double | high = 0 |
High estimate component. | |
double | low = 0 |
Low estimate component. | |
This POD structure is returned by functions implementing two-sided scale estimators. Given a sample X = {x_0,...,x_n-1} and a reference center value m (typically, the median of X), a two-sided scale estimate is computed as two separate components: A low estimate for all x in X such that x ≤ m, and a high estimate for all x in X such that x > m.
Two-sided scale estimates are important in normalization for accurate outlier rejection and sample distribution characterization, especially for skewed or asymmetric distributions.
|
default |
Default constructor. Both components are initialized to zero.
|
default |
Copy constructor.
|
default |
Move constructor.
|
inline |
|
inline |
|
inlinenoexcept |
Returns true iff this two-sided scale estimate is valid. A two-sided scale estimate is valid if both the low and high components are finite, positive and nonzero with respect to the machine epsilon for the type double
.
Definition at line 3583 of file Math.h.
References high, pcl::IsFinite(), and low.
|
inlinenoexcept |
Returns the arithmetic mean of the low and high estimate components if both are nonzero. Otherwise returns the maximum component.
Definition at line 3601 of file Math.h.
Referenced by operator double().
|
inlineexplicitnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
default |
Copy assignment operator.
|
default |
Move assignment operator.
|
inlinenoexcept |