libkissinferencesharp 1.0.x
|
This class is a collection of static methods usefull for use with kissinference. More...
Static Public Member Functions | |
static float[] | CreateRange (float start, float end, int size, bool log) |
Converts an array containing a linear or log range. | |
static float | Grad (float[] data, float[] omegas, int index) |
Approximates the the derivative of an array at the given index. | |
static float | Median (float[] data) |
Calculates the median of the values given. | |
static bool | FloatEq (float a, float b, uint ulp) |
Checks the given floats for equality with a tollerance of ulp epsilons around the sum of the inputs. | |
static string | CheckEnv () |
Checks the envirment to see if this libary can work correctly. | |
static void | CheckEnvThrow () |
Checks the envirment to see if this libary can work correctly and throws a EnviromentException if its not. | |
This class is a collection of static methods usefull for use with kissinference.
|
inlinestatic |
Checks the envirment to see if this libary can work correctly.
References Kiss.VersionFixed.GetVersionNoCheck().
Referenced by Kiss.Utils.CheckEnvThrow().
|
inlinestatic |
Checks the envirment to see if this libary can work correctly and throws a EnviromentException if its not.
Kiss.EnviromentException | Thown if the environment is unacceptable. |
References Kiss.Utils.CheckEnv().
Referenced by Kiss.Utils.CreateRange(), Kiss.Utils.FloatEq(), Kiss.VersionFixed.GetVersion(), Kiss.Utils.Grad(), Kiss.Utils.Median(), Kiss.Network.Network(), and Kiss.Spectra.Spectra().
|
inlinestatic |
Converts an array containing a linear or log range.
start | The startig value of the range. |
end | The ending value of the range. |
size | The number of elements in the range. |
log | If this is set to true the elements in the range are spaced in log10 fashion, otherwise linear spaceing is used. |
References Kiss.Utils.CheckEnvThrow().
|
inlinestatic |
Checks the given floats for equality with a tollerance of ulp epsilons around the sum of the inputs.
a | The first paramter for the comperasin |
b | b The second input to be compared with the first. |
ulp | lp number of epsilons of tollerance.. |
References Kiss.Utils.CheckEnvThrow().
|
inlinestatic |
Approximates the the derivative of an array at the given index.
data | The array, or y values, to approximate the derivative on |
omegas | The omega, or x values to approximate the derivative on |
index | The index at which to aproxmiate the gradiant at. |
References Kiss.Utils.CheckEnvThrow().
|
inlinestatic |
Calculates the median of the values given.
input | The input array. |
References Kiss.Utils.CheckEnvThrow().