57 const std::vector<double>& point);
100 double BoundingBox(
const std::vector<std::vector<double>>& points,
121 const std::vector<std::vector<double>>& simplex);
131 double LpNormp(
const std::vector<double>& v,
const double& p);
140 double LpNorm(
const std::vector<double>& v,
const double& p);
double HullVolumeUniformFactor(const double &d, const double &p)
Returns the hull volume bias factor for N points uniformly distributed inside a ball.
Definition: Geometry.cc:233
Object that can host any type of data in a vector arrangement.
Definition: Vector.hh:17
bool RightHanded(const Vector< double > &a, const Vector< double > &b)
Returns true if the a lies to the right of b in the 2d plane.
Definition: Geometry.cc:60
Set of functions that compose the Statistics package.
double UnitBallVolume(const size_t &d, const double p)
Returns the volume of the unit d-ball.
Definition: Geometry.cc:221
double HullVolumeUniformRelativeBias(const double &d, const double &p, const size_t N)
Returns the relative bias (i.e. E(^V-V)/V) on the volume of the convexe hull of N points uniformly di...
Definition: Geometry.cc:245
double HullVolumeTGausRelativeBias(const double &d, const double &alpha, const size_t N)
Returns the relative bias (i.e. E(^V-V)/V) on the volume of the convexe hull of of a fraction alpha o...
Definition: Geometry.cc:251
double BoundingBox(const std::vector< std::vector< double >> &points, Vector< double > &lower, Vector< double > &upper, double buff)
Builds a bounding box around a set of points with a certain buff.
Definition: Geometry.cc:108
double LpNormp(const std::vector< double > &v, const double &p)
Returns the lp-norm of a vector to the power of p.
Definition: Geometry.cc:205
bool LeftHanded(const Vector< double > &a, const Vector< double > &b)
Returns true if the a lies to the left of b in the 2d plane.
Definition: Geometry.cc:42
double LpNorm(const std::vector< double > &v, const double &p)
Returns the lp-norm of a vector.
Definition: Geometry.cc:215
bool IsInsideSimplex(const std::vector< double > &point, const std::vector< std::vector< double >> &simplex)
Returns true if a point is inside a provided simplex.
Definition: Geometry.cc:174
double PlaneDistance(const std::vector< double > &pars, const std::vector< double > &point)
Computes the distance between a plane of given equation parameters and a point.
Definition: Geometry.cc:29
double HullVolumeTGausRelativeRMS(const double &d, const double &alpha, const size_t N)
Returns the relative RMS (i.e. RMS(^V)/^V) on the volume of the convexe hull of of a fraction alpha o...
Definition: Geometry.cc:262
std::vector< std::vector< double > > SimplexVertices(const size_t n)
Returns the n+1 vertices of an n-simplex.
Definition: Geometry.cc:146
double HullVolumeUniformRelativeRMS(const double &d, const double &p, const size_t N)
Returns the relative RMS (i.e. RMS(^V)/^V) on the volume of the convexe hull of N points uniformly di...
Definition: Geometry.cc:257
std::vector< double > PlaneParameters(const std::vector< Vector< double >> &points)
Computes the equation parameters of a plane given three points.
Definition: Geometry.cc:5
void SortACW(std::vector< Vector< double >> &points)
Sorts the input points anticlockwise in the the 2D plane.
Definition: Geometry.cc:100
void SortCW(std::vector< Vector< double >> &points)
Sorts the input points clockwise in the the 2D plane.
Definition: Geometry.cc:66