Tools Class 
Namespace: Accord.Math
The Tools type exposes the following members.
Name  Description  

Random  Obsolete.
Gets a reference to the random number generator used
internally by the Accord.NET classes and methods.

Name  Description  

Acosh 
Returns the hyperbolic arc cosine of the specified value.
 
Angle(Double, Double) 
Gets the angle formed by the vector [x,y].
 
Angle(Single, Single) 
Gets the angle formed by the vector [x,y].
 
Angle(IntPoint, IntPoint) 
Gets the displacement angle between two points.
 
Asinh 
Returns the hyperbolic arc sine of the specified value.
 
Atanh 
Returns the hyperbolic arc tangent of the specified value.
 
Direction 
Gets the displacement angle between two points, coded
as an integer varying from 0 to 20.
 
FactorialPower 
Returns the factorial falling power of the specified value.
 
GreatestCommonDivisor 
Gets the greatest common divisor between two integers.
 
Hypotenuse(Decimal, Decimal) 
Hypotenuse calculus without overflow/underflow
 
Hypotenuse(Double, Double) 
Hypotenuse calculus without overflow/underflow
 
Hypotenuse(Single, Single) 
Hypotenuse calculus without overflow/underflow
 
Interpolate1D 
Interpolates data using a piecewise linear function.
 
InvSqrt 
Fast inverse floatingpoint square root.
 
IsPowerOf2 
Checks if the specified integer is power of 2.
 
Log2 
Get base of binary logarithm.
 
Max 
Gets the maximum value among three values.
 
Min 
Gets the minimum value among three values.
 
Mod(Double, Double) 
Gets the proper modulus operation for
a real value x and modulo m.
 
Mod(Int32, Int32) 
Gets the proper modulus operation for
an integer value x and modulo m.
 
NextPowerOf2 
Returns the next power of 2 after the input value x.
 
Pow2 
Calculates power of 2.
 
PreviousPowerOf2 
Returns the previous power of 2 after the input value x.
 
Scale(Double, Double, Double)  Obsolete.
Converts the value x (which is measured in the scale
'from') to another value measured in the scale 'to'.
 
Scale(Double, Double, Double)  Obsolete.
Converts the value x (which is measured in the scale
'from') to another value measured in the scale 'to'.
 
Scale(Double, Double, Double)  Obsolete.
Converts the value x (which is measured in the scale
'from') to another value measured in the scale 'to'.
 
Scale(DoubleRange, DoubleRange, Double)  Obsolete.
Converts the value x (which is measured in the scale
'from') to another value measured in the scale 'to'.
 
Scale(DoubleRange, DoubleRange, Double)  Obsolete.
Converts the value x (which is measured in the scale
'from') to another value measured in the scale 'to'.
 
Scale(IntRange, DoubleRange, Int32)  Obsolete.
Converts the value x (which is measured in the scale
'from') to another value measured in the scale 'to'.
 
Scale(IntRange, IntRange, Int32)  Obsolete.
Converts the value x (which is measured in the scale
'from') to another value measured in the scale 'to'.
 
Scale(IntRange, IntRange, Int32)  Obsolete.
Converts the value x (which is measured in the scale
'from') to another value measured in the scale 'to'.
 
Scale(Range, Range, Single)  Obsolete.
Converts the value x (which is measured in the scale
'from') to another value measured in the scale 'to'.
 
Scale(Double, Double, Double, Double, Double)  Obsolete.
Converts the value x (which is measured in the scale
'from') to another value measured in the scale 'to'.
 
Scale(Double, Double, Double, Double, Double)  Obsolete.
Converts the value x (which is measured in the scale
'from') to another value measured in the scale 'to'.
 
Scale(Double, Double, Double, Double, Double)  Obsolete.
Converts the value x (which is measured in the scale
'from') to another value measured in the scale 'to'.
 
Scale(Double, Double, Double, Double, Double)  Obsolete.
Converts the value x (which is measured in the scale
'from') to another value measured in the scale 'to'.
 
Scale(Double, Double, Double, Double, Double)  Obsolete.
Converts the value x (which is measured in the scale
'from') to another value measured in the scale 'to'.
 
Scale(Int32, Int32, Int32, Int32, Int32)  Obsolete.
Converts the value x (which is measured in the scale
'from') to another value measured in the scale 'to'.
 
Scale(Single, Single, Single, Single, Single)  Obsolete.
Converts the value x (which is measured in the scale
'from') to another value measured in the scale 'to'.
 
Scale(Single, Single, Single, Single, Single)  Obsolete.
Converts the value x (which is measured in the scale
'from') to another value measured in the scale 'to'.
 
SetupGenerator  Obsolete.
Sets a random seed for the framework's main
internal number generator.
 
Sqrt 
Returns the square root of the specified Decimal number.
 
StableSortT(T)  Obsolete.
Sorts the elements of an entire onedimensional array using the given comparison.
 
StableSortT(T, ComparisonT)  Obsolete.
Sorts the elements of an entire onedimensional array using the given comparison.
 
StableSortT(T, Int32)  Obsolete.
Sorts the elements of an entire onedimensional array using the given comparison.
 
TruncatedPower 
Truncated power function.
