![]() |
SynAPSE
0.6.0
Synergistic Analysis of Phase Space Evolution
|
Mathematics environment (includes Statistics and Geometry packages) More...
Functions | |
| std::vector< double > | PlaneParameters (const std::vector< Vector< double >> &points) |
| Computes the equation parameters of a plane given three points. More... | |
| std::vector< double > | PlaneParameters (const Vector< double > &v0, const Vector< double > &v1, const Vector< double > &v2) |
| Computes the equation parameters of a plane given three points. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| void | SortCW (std::vector< Vector< double >> &points) |
| Sorts the input points clockwise in the the 2D plane. More... | |
| void | SortACW (std::vector< Vector< double >> &points) |
| Sorts the input points anticlockwise in the the 2D plane. More... | |
| double | 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 > > | SimplexVertices (const size_t n) |
| Returns the n+1 vertices of an n-simplex. More... | |
| bool | 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 | LpNormp (const std::vector< double > &v, const double &p) |
| Returns the lp-norm of a vector to the power of p. More... | |
| double | LpNorm (const std::vector< double > &v, const double &p) |
| Returns the lp-norm of a vector. More... | |
| double | UnitBallVolume (const size_t &d, const double p=2.) |
| Returns the volume of the unit d-ball. More... | |
| double | HullVolumeUniformFactor (const double &d, const double &p) |
| Returns the hull volume bias factor for N points uniformly distributed inside a ball. More... | |
| 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 distributed inside a p-unit ball in d dimensions. More... | |
| 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 of N points selected from a multivariate Gaussian in dimension d. More... | |
| 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 distributed inside a p-unit ball in d dimensions. More... | |
| 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 of N points selected from a multivariate Gaussian in dimension d. More... | |
| double | Mean (const std::vector< double > &vx) |
| Computes the mean of a variable sample. More... | |
| double | MeanError (const std::vector< double > &vx, const std::vector< double > &vex=std::vector< double >()) |
| Computes the error on the mean of a variable sample. More... | |
| double | MeanMError (const std::vector< double > &vex) |
| Computes the measurement error on the mean of a variable sample. More... | |
| double | MeanSError (const std::vector< double > &vx) |
| Computes the statistical error on the mean of a variable sample. More... | |
| double | RobustMean (const std::vector< double > &vx) |
| Computes the MCD robust mean of a variable sample. More... | |
| double | TMean (const std::vector< double > &vx, const double &frac) |
| Computes the trimmed mean of a variable sample. More... | |
| double | TMeanSError (const std::vector< double > &vx, const double &frac) |
| Computes the statistical error on the trimmed mean of a variable sample. More... | |
| double | WMean (const std::vector< double > &vx, const double &frac) |
| Computes the winsorized mean of a variable sample. More... | |
| void | DecrementMean (const size_t &n, double &mean, const double &x) |
| Removes an element from a precomputed mean. More... | |
| void | IncrementMean (const size_t &n, double &mean, const double &x) |
| Adds an element to a precomputed mean. More... | |
| double | Variance (const std::vector< double > &vx) |
| Computes the variance of a variable sample. More... | |
| double | VarianceError (const std::vector< double > &vx, const std::vector< double > &vex=std::vector< double >()) |
| Computes the error on the variance of a variable sample. More... | |
| double | VarianceMError (const std::vector< double > &vx, const std::vector< double > &vex=std::vector< double >()) |
| Computes the measurement error on the variance of a variable sample. More... | |
| double | VarianceSError (const std::vector< double > &vx) |
| Computes the statistical error on the variance of a variable sample. More... | |
| double | RMS (const std::vector< double > &vx) |
| Computes the standard deviation of a variable sample. More... | |
| double | RMSError (const std::vector< double > &vx, const std::vector< double > &vex=std::vector< double >()) |
| Computes the error on the standard deviation of a variable sample. More... | |
| double | RMSMError (const std::vector< double > &vx, const std::vector< double > &vex) |
| Computes the measurement error on the standard deviation of a variable sample. More... | |
| double | RMSSError (const std::vector< double > &vx) |
| Computes the statistical error on the standard deviation of a variable sample. More... | |
| double | WRMS (const std::vector< double > &vx, const double &frac) |
| Computes the winsorized standard deviation of a variable sample. More... | |
| double | Covariance (const std::vector< double > &vx, const std::vector< double > &vy) |
| Computes the covariance of two variable samples. More... | |
| double | CovarianceError (const std::vector< double > &vx, const std::vector< double > &vy, const std::vector< double > &vex=std::vector< double >(), const std::vector< double > &vey=std::vector< double >()) |
| Computes the error on the covariance of two variable samples. More... | |
| double | CovarianceMError (const std::vector< double > &vx, const std::vector< double > &vy, const std::vector< double > &vex, const std::vector< double > &vey) |
| Computes the measurement error on the covariance of two variable samples. More... | |
| double | CovarianceSError (const std::vector< double > &vx, const std::vector< double > &vy) |
| Computes the statistical error on the covariance of two variable samples. More... | |
| void | DecrementCovariance (const size_t &n, double &cov, const double &xmean, const double &ymean, const double &x, const double &y) |
| Removes an pair of elements from a precomputed covariance. More... | |
| void | IncrementCovariance (const size_t &n, double &cov, const double &xmean, const double &ymean, const double &x, const double &y) |
| Adds an pair of elements from a precomputed covariance. More... | |
| Matrix< double > | CovarianceMatrix (const Matrix< double > &mat) |
| Returns the covariance matrix of a multivariate sample. More... | |
| Matrix< double > | RobustCovarianceMatrix (const Matrix< double > &mat, const double hh=0) |
| Returns the MCD robust covariance matrix of a multivariate sample. More... | |
| void | DecrementCovarianceMatrix (const size_t &n, Matrix< double > &covmat, const std::vector< double > &means, const std::vector< double > &v) |
| Removes an element array from a precomputed covariance matrix. More... | |
| void | IncrementCovarianceMatrix (const size_t &n, Matrix< double > &covmat, const std::vector< double > &means, const std::vector< double > &v) |
| Adds an element array to a precomputed covariance matrix. More... | |
| double | DeterminantError (const Matrix< double > &mat, const Matrix< double > &mat_error=Matrix< double >()) |
| Returns the exact error on the determinant of the covariance matrix. More... | |
| double | DeterminantMError (const Matrix< double > &mat, const Matrix< double > &mat_error) |
| Returns the measurement error on the determinant of the covariance matrix. More... | |
| double | DeterminantSError (const Matrix< double > &mat) |
| Returns the statistical error on the determinant of the covariance matrix. More... | |
| double | Median (const std::vector< double > &vx) |
| Computes the median of a variable sample. More... | |
| double | MedianSError (const size_t n, const double &density) |
| Computes the statistical error on the median of a variable sample. More... | |
| double | LWidth (const std::vector< double > &vx, const double &p) |
| Computes the Lebesgues width for a given metric (RMS = L2) More... | |
| double | Quantile (const std::vector< double > &vx, const double &alpha) |
| Computes the quantile of a variable sample at probability alpha. More... | |
| double | QuantileSError (const size_t n, const double &alpha, const double &density) |
| Computes the statistical error on the quantile of a variable sample at probability alpha. More... | |
| double | Mode (const std::vector< double > &vx) |
| Computes the most probable value of the variable sample. More... | |
| double | Min (const std::vector< double > &vx) |
| Returns the minimum value in the array. More... | |
| double | Max (const std::vector< double > &vx) |
| Returns the maximum value in the array. More... | |
| double | Mahalanobis (const Matrix< double > &invcov, const Matrix< double > &vec) |
| Returns the Mahalanobis distance of a point to a distribution. More... | |
| double | MahalanobisSquared (const Matrix< double > &invcov, const Matrix< double > &vec) |
| Returns the squared Mahalanobis distance of a point to a distribution. More... | |
| double | GeneralisedDistance (const double &rhoR, const double &rho0) |
| Returns the generalised distance of a point to a distribution. More... | |
| double | GeneralisedDistanceSquared (const double &rhoR, const double &rho0) |
| Returns the squared generalised distance of a point to a distribution. More... | |
| size_t | Factorial (const size_t n) |
| Returns the factorial of the provided integer. More... | |
| template<typename T > | |
| void | Trim (std::vector< T > &vx, const double &frac) |
| Trim the n% lowest and n% largest values. More... | |
| template<typename T > | |
| std::vector< T > | Trimmed (std::vector< T > vx, const double &frac) |
| Trim the n% lowest and n% largest values. More... | |
| template<typename T > | |
| void | Winsorize (std::vector< T > &vx, const double &frac) |
| Winsorize to keep only a fraction frac of the original sample. More... | |
| template<typename T > | |
| std::vector< T > | Winsorized (std::vector< T > vx, const double &frac) |
| Winsorize to keep only a fraction frac of the original sample. More... | |
| template<typename I > | |
| I | RandomElement (I begin, I end) |
| Randomly select a single element from an array. More... | |
| template<typename T > | |
| std::vector< T > | Resample (const std::vector< T > &vx, size_t m=0, const bool rep=true) |
| Randomly resample n data points into m data points with or without replacement. More... | |
Mathematics environment (includes Statistics and Geometry packages)
| 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.
| points | Array of points to bound |
| lower | Array of lower bounds to set |
| upper | Array of upper bounds to set |
| buff | Fraction of the range in the buffer space |
| double Math::Covariance | ( | const std::vector< double > & | vx, |
| const std::vector< double > & | vy | ||
| ) |
Computes the covariance of two variable samples.
| vx | Array of x |
| vy | Array of y |
| double Math::CovarianceError | ( | const std::vector< double > & | vx, |
| const std::vector< double > & | vy, | ||
| const std::vector< double > & | vex = std::vector< double >(), |
||
| const std::vector< double > & | vey = std::vector< double >() |
||
| ) |
Computes the error on the covariance of two variable samples.
| vx | Array of x |
| vy | Array of y |
| vex | Array of x errors |
| vey | Array of y errors |
Returns the covariance matrix of a multivariate sample.
| mat | Matrix that contains the relevant sample |
| double Math::CovarianceMError | ( | const std::vector< double > & | vx, |
| const std::vector< double > & | vy, | ||
| const std::vector< double > & | vex, | ||
| const std::vector< double > & | vey | ||
| ) |
Computes the measurement error on the covariance of two variable samples.
| vx | Array of x |
| vy | Array of y |
| vex | Array of x errors |
| vey | Array of y errors |
| double Math::CovarianceSError | ( | const std::vector< double > & | vx, |
| const std::vector< double > & | vy | ||
| ) |
Computes the statistical error on the covariance of two variable samples.
| vx | Array of x |
| vy | Array of y |
| void Math::DecrementCovariance | ( | const size_t & | n, |
| double & | cov, | ||
| const double & | xmean, | ||
| const double & | ymean, | ||
| const double & | x, | ||
| const double & | y | ||
| ) |
Removes an pair of elements from a precomputed covariance.
| n | Current number of pair of elements in the covariance |
| cov | Value of the covariance of n elements |
| xmean | Current mean of the first variable |
| ymean | Current mean of the second variable |
| x | Value of the first variable to remove from the sample |
| y | Value of the second variable to remove from the sample |
| void Math::DecrementCovarianceMatrix | ( | const size_t & | n, |
| Matrix< double > & | covmat, | ||
| const std::vector< double > & | means, | ||
| const std::vector< double > & | v | ||
| ) |
Removes an element array from a precomputed covariance matrix.
| n | Current number of element arrays in the covariance matrix |
| covmat | Value of the covariance matrix |
| means | Vector of means |
| v | Element array to remove from the sample |
| void Math::DecrementMean | ( | const size_t & | n, |
| double & | mean, | ||
| const double & | x | ||
| ) |
Removes an element from a precomputed mean.
| n | Current number of elements in the mean |
| mean | Value of the mean of n elements |
| x | Value to remove from the sample |
| double Math::DeterminantSError | ( | const Matrix< double > & | mat | ) |
Returns the statistical error on the determinant of the covariance matrix.
| mat | Matrix that contains the samples |
| size_t Math::Factorial | ( | const size_t | n | ) |
Returns the factorial of the provided integer.
| n | Integer |
| double Math::GeneralisedDistance | ( | const double & | rhoR, |
| const double & | rho0 | ||
| ) |
Returns the generalised distance of a point to a distribution.
| rhoR | Density of the distribution at the level of the point |
| rho0 | Maximum density of the distribution |
| double Math::GeneralisedDistanceSquared | ( | const double & | rhoR, |
| const double & | rho0 | ||
| ) |
Returns the squared generalised distance of a point to a distribution.
| rhoR | Density of the distribution at the level of the point |
| rho0 | Maximum density of the distribution |
| 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.
| d | Dimension of the space |
| alpha | Fraction of the total number of points |
| N | Total number of samples |
| 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.
| d | Dimension of the space |
| alpha | Fraction of the total number of points |
| N | Total number of samples |
| double Math::HullVolumeUniformFactor | ( | const double & | d, |
| const double & | p | ||
| ) |
Returns the hull volume bias factor for N points uniformly distributed inside a ball.
| d | Dimension of the space |
| p | Parameter of the Lebesgue norm |
| 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.
| d | Dimension of the space |
| p | Parameter of the Lebesgue norm |
| N | Number of samples |
| 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.
| d | Dimension of the space |
| p | Parameter of the Lebesgue norm |
| N | Number of samples |
| void Math::IncrementCovariance | ( | const size_t & | n, |
| double & | cov, | ||
| const double & | xmean, | ||
| const double & | ymean, | ||
| const double & | x, | ||
| const double & | y | ||
| ) |
Adds an pair of elements from a precomputed covariance.
| n | Current number of pair of elements in the covariance |
| cov | Value of the covariance of n elements |
| xmean | Current mean of the first variable |
| ymean | Current mean of the second variable |
| x | Value of the first variable to remove from the sample |
| y | Value of the second variable to remove from the sample |
| void Math::IncrementCovarianceMatrix | ( | const size_t & | n, |
| Matrix< double > & | covmat, | ||
| const std::vector< double > & | means, | ||
| const std::vector< double > & | v | ||
| ) |
Adds an element array to a precomputed covariance matrix.
| n | Current number of element arrays in the covariance matrix |
| covmat | Value of the covariance matrix |
| means | Vector of means |
| v | Element array to add to the sample |
| void Math::IncrementMean | ( | const size_t & | n, |
| double & | mean, | ||
| const double & | x | ||
| ) |
Adds an element to a precomputed mean.
| n | Current number of elements in the mean |
| mean | Value of the mean of n elements |
| x | Value to add to the sample |
| 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.
| point | Test point |
| simplex | Test simplex |
Returns true if the a lies to the left of b in the 2d plane.
| a | First vector |
| b | Second |
| double Math::LpNorm | ( | const std::vector< double > & | v, |
| const double & | p | ||
| ) |
| double Math::LpNormp | ( | const std::vector< double > & | v, |
| const double & | p | ||
| ) |
Returns the lp-norm of a vector to the power of p.
| v | Vector |
| p | Parameter of the Lebesgue norm |
| double Math::LWidth | ( | const std::vector< double > & | vx, |
| const double & | p | ||
| ) |
Computes the Lebesgues width for a given metric (RMS = L2)
| vx | Array of x |
| p | Parameter p of the Lp space |
Returns the Mahalanobis distance of a point to a distribution.
| invcov | Inverse covariance matrix of the data |
| vec | Vector of measurements |
Returns the squared Mahalanobis distance of a point to a distribution.
| invcov | Inverse covariance matrix of the data |
| vec | Vector of measurements |
| double Math::Max | ( | const std::vector< double > & | vx | ) |
Returns the maximum value in the array.
| vx | Array of x |
| double Math::Mean | ( | const std::vector< double > & | vx | ) |
Computes the mean of a variable sample.
| vx | Array of x |
| double Math::MeanError | ( | const std::vector< double > & | vx, |
| const std::vector< double > & | vex = std::vector< double >() |
||
| ) |
Computes the error on the mean of a variable sample.
| vx | Array of x |
| vex | Array of x errors |
| double Math::MeanMError | ( | const std::vector< double > & | vex | ) |
Computes the measurement error on the mean of a variable sample.
| vex | Array of x errors |
| double Math::MeanSError | ( | const std::vector< double > & | vx | ) |
Computes the statistical error on the mean of a variable sample.
| vx | Array of x |
| double Math::Median | ( | const std::vector< double > & | vx | ) |
Computes the median of a variable sample.
| vx | Array of x |
| double Math::MedianSError | ( | const size_t | n, |
| const double & | density | ||
| ) |
Computes the statistical error on the median of a variable sample.
| n | Total number of samples points |
| density | Density at the point in question (essential) |
| double Math::Min | ( | const std::vector< double > & | vx | ) |
Returns the minimum value in the array.
| vx | Array of x |
| double Math::Mode | ( | const std::vector< double > & | vx | ) |
Computes the most probable value of the variable sample.
| vx | Array of x |
| 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.
| pars | Array of parameters n_x, n_y, n_z, r_0 |
| point | Coordinates of the point |
| std::vector< double > Math::PlaneParameters | ( | const std::vector< Vector< double >> & | points | ) |
Computes the equation parameters of a plane given three points.
| points | Vector of coordinates of the 3 points |
| 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.
| v0,v1,v2 | Coordinates of the 3 points |
| double Math::Quantile | ( | const std::vector< double > & | vx, |
| const double & | alpha | ||
| ) |
Computes the quantile of a variable sample at probability alpha.
| vx | Array of x |
| alpha | Probability value, at which the quantile is computed |
| double Math::QuantileSError | ( | const size_t | n, |
| const double & | alpha, | ||
| const double & | density | ||
| ) |
Computes the statistical error on the quantile of a variable sample at probability alpha.
| n | Total number of samples points |
| alpha | Probability value, at which the quantile is computed |
| density | Density at the point in question (essential) |
| I Math::RandomElement | ( | I | begin, |
| I | end | ||
| ) |
Randomly select a single element from an array.
| begin | Iterator to the first element |
| end | Iterator to the last element |
| std::vector< T > Math::Resample | ( | const std::vector< T > & | vx, |
| size_t | m = 0, |
||
| const bool | rep = true |
||
| ) |
Randomly resample n data points into m data points with or without replacement.
| vx | Input sample |
| m | Amount of points in the subsample |
| rep | With replacement if true |
Returns true if the a lies to the right of b in the 2d plane.
| a | First vector |
| b | Second |
| double Math::RMS | ( | const std::vector< double > & | vx | ) |
Computes the standard deviation of a variable sample.
| vx | Array of x |
| double Math::RMSError | ( | const std::vector< double > & | vx, |
| const std::vector< double > & | vex = std::vector< double >() |
||
| ) |
Computes the error on the standard deviation of a variable sample.
| vx | Array of x |
| vex | Array of x errors |
| double Math::RMSMError | ( | const std::vector< double > & | vx, |
| const std::vector< double > & | vex | ||
| ) |
Computes the measurement error on the standard deviation of a variable sample.
| vx | Array of x |
| vex | Array of x errors |
| double Math::RMSSError | ( | const std::vector< double > & | vx | ) |
Computes the statistical error on the standard deviation of a variable sample.
| vx | Array of x |
Returns the MCD robust covariance matrix of a multivariate sample.
| mat | Matrix that contains the relevant sample |
| hh | Number of elements in the subsamble of which to get the MCD |
| double Math::RobustMean | ( | const std::vector< double > & | vx | ) |
Computes the MCD robust mean of a variable sample.
| vx | Array of x |
| std::vector< std::vector< double > > Math::SimplexVertices | ( | const size_t | n | ) |
Returns the n+1 vertices of an n-simplex.
| n | Dimension of the space |
| void Math::SortACW | ( | std::vector< Vector< double >> & | points | ) |
Sorts the input points anticlockwise in the the 2D plane.
| points | Array of points to sort |
| void Math::SortCW | ( | std::vector< Vector< double >> & | points | ) |
Sorts the input points clockwise in the the 2D plane.
| points | Array of points to sort |
| double Math::TMean | ( | const std::vector< double > & | vx, |
| const double & | frac | ||
| ) |
Computes the trimmed mean of a variable sample.
| vx | Array of x |
| frac | Fraction of lowest and highest values to discard |
| double Math::TMeanSError | ( | const std::vector< double > & | vx, |
| const double & | frac | ||
| ) |
Computes the statistical error on the trimmed mean of a variable sample.
| vx | Array of x |
| frac | Fraction of lowest and highest values to discard |
| void Math::Trim | ( | std::vector< T > & | vx, |
| const double & | frac | ||
| ) |
Trim the n% lowest and n% largest values.
| vx | Input sample to trim |
| frac | Fraction of lowest and highest values to discard |
| std::vector< T > Math::Trimmed | ( | std::vector< T > | vx, |
| const double & | frac | ||
| ) |
Trim the n% lowest and n% largest values.
| vx | Input sample to trim |
| frac | Fraction of lowest and highest values to discard |
| double Math::UnitBallVolume | ( | const size_t & | d, |
| const double | p = 2. |
||
| ) |
Returns the volume of the unit d-ball.
| d | Dimension |
| p | Lebesgue Metric |
| double Math::Variance | ( | const std::vector< double > & | vx | ) |
Computes the variance of a variable sample.
| vx | Array of x |
| double Math::VarianceError | ( | const std::vector< double > & | vx, |
| const std::vector< double > & | vex = std::vector< double >() |
||
| ) |
Computes the error on the variance of a variable sample.
| vx | Array of x |
| vex | Array of x errors |
| double Math::VarianceMError | ( | const std::vector< double > & | vx, |
| const std::vector< double > & | vex = std::vector< double >() |
||
| ) |
Computes the measurement error on the variance of a variable sample.
| vx | Array of x |
| vex | Array of x errors |
| double Math::VarianceSError | ( | const std::vector< double > & | vx | ) |
Computes the statistical error on the variance of a variable sample.
| vx | Array of x |
| void Math::Winsorize | ( | std::vector< T > & | vx, |
| const double & | frac | ||
| ) |
Winsorize to keep only a fraction frac of the original sample.
| vx | Input sample to winsorize |
| frac | Fraction of lowest and highest values to winsorize |
| std::vector< T > Math::Winsorized | ( | std::vector< T > | vx, |
| const double & | frac | ||
| ) |
Winsorize to keep only a fraction frac of the original sample.
| vx | Input sample to winsorize |
| frac | Fraction of lowest and highest values to winsorize |
| double Math::WMean | ( | const std::vector< double > & | vx, |
| const double & | frac | ||
| ) |
Computes the winsorized mean of a variable sample.
| vx | Array of x |
| frac | Fraction of lowest and highest values to winsorize |
| double Math::WRMS | ( | const std::vector< double > & | vx, |
| const double & | frac | ||
| ) |
Computes the winsorized standard deviation of a variable sample.
| vx | Array of x |
| frac | Fraction of lowest and highest values to winsorize |
1.8.6