SynAPSE  0.6.0
Synergistic Analysis of Phase Space Evolution
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
Namespaces | Functions
Geometry.hh File Reference

Set of functions that compose the Geometry package. More...

#include <iostream>
#include <vector>
#include <string>
#include <map>
#include <algorithm>
#include "TF1.h"
#include "Vector.hh"
#include "Matrix.hh"
#include "Statistics.hh"

Go to the source code of this file.

Namespaces

 Math
 Mathematics environment (includes Statistics and Geometry packages)
 

Functions

std::vector< double > Math::PlaneParameters (const Vector< double > &v0, const Vector< double > &v1, const Vector< double > &v2)
 Computes the equation parameters of a plane given three points. More...
 
std::vector< double > Math::PlaneParameters (const std::vector< Vector< double >> &points)
 Computes the equation parameters of a plane given three points. More...
 
double Math::PlaneDistance (const std::vector< double > &pars, const std::vector< double > &point)
 Computes the distance between a plane of given equation parameters and a point. More...
 
bool Math::LeftHanded (const Vector< double > &a, const Vector< double > &b)
 Returns true if the a lies to the left of b in the 2d plane. More...
 
bool Math::RightHanded (const Vector< double > &a, const Vector< double > &b)
 Returns true if the a lies to the right of b in the 2d plane. More...
 
void Math::SortCW (std::vector< Vector< double >> &points)
 Sorts the input points clockwise in the the 2D plane. More...
 
void Math::SortACW (std::vector< Vector< double >> &points)
 Sorts the input points anticlockwise in the the 2D plane. More...
 
double Math::BoundingBox (const std::vector< std::vector< double >> &points, Vector< double > &lower, Vector< double > &upper, double buff=0.)
 Builds a bounding box around a set of points with a certain buff. More...
 
std::vector< std::vector
< double > > 
Math::SimplexVertices (const size_t n)
 Returns the n+1 vertices of an n-simplex. More...
 
bool Math::IsInsideSimplex (const std::vector< double > &point, const std::vector< std::vector< double >> &simplex)
 Returns true if a point is inside a provided simplex. More...
 
double Math::LpNormp (const std::vector< double > &v, const double &p)
 Returns the lp-norm of a vector to the power of p. More...
 
double Math::LpNorm (const std::vector< double > &v, const double &p)
 Returns the lp-norm of a vector. More...
 
double Math::UnitBallVolume (const size_t &d, const double p=2.)
 Returns the volume of the unit d-ball. More...
 
double Math::HullVolumeUniformFactor (const double &d, const double &p)
 Returns the hull volume bias factor for N points uniformly distributed inside a ball. More...
 
double Math::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 distributed inside a p-unit ball in d dimensions. More...
 
double Math::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 of N points selected from a multivariate Gaussian in dimension d. More...
 
double Math::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 distributed inside a p-unit ball in d dimensions. More...
 
double Math::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 of N points selected from a multivariate Gaussian in dimension d. More...
 

Detailed Description

Set of functions that compose the Geometry package.

Contains a broad array of useful mathematical methods in the context of computational geometry.