neic-glass3  1.4.6
Static Public Member Functions | Static Public Attributes | List of all members
glass3::util::GlassMath Class Reference

glassutil logging class More...

#include <glassmath.h>

Collaboration diagram for glass3::util::GlassMath:
Collaboration graph

Static Public Member Functions

static double sig (double tdif, double sig)
 CGlass significance function. More...
 
static double sig_laplace_pdf (double tdif, double sig)
 CGlass laplacian significance function (PDF) More...
 
static double random (double x, double y)
 Generate Random Number. More...
 
static double gauss (double avg, double std)
 Calculate Gaussian random sample. More...
 
static void initializeRandom ()
 initialize random number generator More...
 
static double angleDifference (double angle1, double angle2)
 get angle difference between two angles More...
 

Static Public Attributes

static constexpr double k_RadiansToDegrees = 57.29577951308
 Radians to Degrees conversion factor. More...
 
static constexpr double k_DegreesToRadians = 0.01745329251994
 Degrees to Radians conversion factor. More...
 
static constexpr double k_Pi = 3.14159265359
 Pi value. More...
 
static constexpr double k_TwoPi = 6.283185307179586
 Two Pi value. More...
 

Detailed Description

glassutil logging class

The CLogit class encapsulates the logic and functionality needed to write logging information to disk.

Member Function Documentation

double glass3::util::GlassMath::angleDifference ( double  angle1,
double  angle2 
)
static

get angle difference between two angles

Takes two angles in degrees and computes the minimum angle difference

Parameters
angle1- The first angle in degrees
angle2- The second angle in degrees
Returns
Returns the minimum difference between angles in degrees

Get the minimum angle (degrees) between two angles

double glass3::util::GlassMath::gauss ( double  avg,
double  std 
)
static

Calculate Gaussian random sample.

Calculate random normal gaussian deviate value using Box-Muller method. This function is used in determining the randomized step sizes for relocation (anneal and localize)

Parameters
avg- The mean average value to use in the Box-Muller method
std- The standard deviation value to use in the Box-Muller method
Returns
Returns the Gaussian random sample
void glass3::util::GlassMath::initializeRandom ( )
static

initialize random number generator

Initializes the random number generator by seeding m_RandomGenerator.

double glass3::util::GlassMath::random ( double  x,
double  y 
)
static

Generate Random Number.

Generates random number between x and y. This function is used by gauss in determining the randomized step sizes for relocation (anneal and localize)

Parameters
x- The minimum random number
y- The maximum random number
Returns
Returns the random sample
double glass3::util::GlassMath::sig ( double  tdif,
double  sig 
)
static

CGlass significance function.

This function calculates the significance function for glasscore, which is the bell shaped curve with sig(0, x) pinned to 0.

Parameters
tdif- A double containing x value.
sig- A double value containing the sigma,
Returns
Returns a double value containing significance function result
double glass3::util::GlassMath::sig_laplace_pdf ( double  tdif,
double  sig 
)
static

CGlass laplacian significance function (PDF)

This function calculates a laplacian significance used in associator. This should have the affect of being L1 normish, instead of L2 normish. Unlike the other significance function, this returns the PDF value

Parameters
tdif- A double containing x value.
sig- A double value containing the sigma,
Returns
Returns a double value containing significance function result

Member Data Documentation

constexpr double glass3::util::GlassMath::k_DegreesToRadians = 0.01745329251994
static

Degrees to Radians conversion factor.

constexpr double glass3::util::GlassMath::k_Pi = 3.14159265359
static

Pi value.

constexpr double glass3::util::GlassMath::k_RadiansToDegrees = 57.29577951308
static

Radians to Degrees conversion factor.

constexpr double glass3::util::GlassMath::k_TwoPi = 6.283185307179586
static

Two Pi value.


The documentation for this class was generated from the following files: