Sunday, 05 February 2012

DiceLockSecurity Knowledge

Windows - Source Code

Linux - Source Code

JAVA - Source Code

DOCUMENTATION - Inside Knowledge

DOCUMENTATION - Self browser view

HOW TO

arrow RandomTest arrow DiscreteFourierTransformTest
DiscreteFourierTransformTest (Discrete Fourier Transform Random Test) Print E-mail
DiscreteFourierTransformTest Class   d-64class-der.png
Get FREE DiceChecker C++
Random Number Test
Windows DLL

Derived class from: BaseRandomTest


Implements the DiscreteFourierTransform random test.

The class contains:

  Constructors & Destructor
  Initializer methods
  Class methods
  Specific Class methods




Class Constructors & Destructor

d-const.png

  DiscreteFourierTransformTest ();
    Creates an object of the class, sets the default values for members and creates the MathematicalFunctions object needed to execute the random test.

d-const.png

  DiscreteFourierTransformTest (MathematicalFunctions* functions);
   
Creates an object of the class, sets the default values for members and sets the MathematicalFunctions object functions passed as the MathematicalFunctions object needed to execute the random test.

d-note.png   If no MathematicalFunctions object functions is passed (NULL value), the constructor creates by itself the corresponding MathematicalFunctions object.


d-dest.png

  ~DiscreteFourierTransformTest ();
   
Destroys the object and clears all members.

d-note.png   If a MathematicalFunctions object has been created when the object was created, the MathematicalFunctions object is destroyed. If the MathematicalFunctions object was provided as a parameter, the MathematicalFunctions object is not deleted !!!.






Class Initializers

d-reset.png

  void Initialize (void); [ Inherited from BaseRandomTest ]
    Sets the default values to all members, the object is cleaned. The MathematicalFunctions object is not affected.

Class Methods

d-set.png

  void SetAlpha (double alpha); [ Inherited from BaseRandomTest ]
    Sets the alpha value for the random test object.
Alpha is the significance level that determines the region of acceptance and rejection.
For example, if alpha is set to >= 0,001 then we are demanding a confidence level of 99,9%.

d-exe.png

  bool IsRandom (BaseCryptoRandomStream* stream); [ Overridden, BaseRandomTest virtual method defined ]
    Performs the specific randomness test.
Checks randomness of BaseCryptoRandomStream stream parameter and returns 0 (false randomness) or 1 (true randomness).

d-get.png

  bool IsRandom (void); [ Inherited from BaseRandomTest ]
    Gets randomness of the last checked BaseCryptoRandomStream , returns 0 (false randomness) or 1 (true randomness).

d-get.png

  double GetPValue (void); [ Inherited from BaseRandomTest ]
    Gets PValue of the last checked BaseCryptoRandomStream .
PValue is the probability that a perfect random number generator would have produced a sequence less random than the BaseCryptoRandomStream  checked, given the kind of non-randomness assessed by the test.

d-get.png

  double GetAlpha (void); [ Inherited from BaseRandomTest ]
    Gets the alpha of the random test object.

d-get.png

  RandomTests GetType (void); [ Overridden, BaseRandomTest virtual method defined ]
    Gets the random test type (the algorithm that implements) of the object.
Returns the corresponding RandomTests value.

d-get.png

  unsigned int GetMinimumLength (void); [ Overridden, BaseRandomTest virtual method defined ]
    Gets the minimum length that the BaseCryptoRandomStream must have in order to perform the random test.

d-get.png

  RandomTestErrors GetError (void); [ Inherited from BaseRandomTest ]
    Gets the error of the last checked BaseCryptoRandomStream .
Returns one of the RandomTestErrors values.
If no error has been produced, the value is set to NoError.



Specific Class Methods

d-get.png

  double GetPercentile (void);
    Gets the percentile result.

d-get.png

  double GetObservedPeaks (void);
    Gets the observed peaks result.

d-get.png

  double GetExpectedPeaks (void);
    Gets the expected peaks result.

d-get.png

  double GetNormalizedDifference (void);
    Gets the normalized difference result.






 


You can check the page Used Symbols for an explanation of the symbols near the information.

 

Please, let us know the usefulness of the information, it will allow us to be able to improve the support.

Was the information useful?

Vote
 
 



Close Me  
Get FREE Random Number Test Windows DLL !
Get FREE Hash Algorithms Windows DLL !