View source: R/TBT.criticalValue.R
TBT.criticalValue | R Documentation |
Approximately computes cumulative distribution function of the test statistic of the Topological Binary Test of Alcover et al. (2013) and finds the required critical value for the test.
TBT.criticalValue(m, k, alpha = 0.01, cdf = FALSE, exact = TRUE)
m |
the length of words (B-bit) in Topological Binary Test. |
k |
the number of words (integers) generated by the RNG of interest that will be tested. |
alpha |
a predetermined value of type-I error with the default value of 0.05. |
cdf |
if |
exact |
if |
The function TBT.criticalValue
lists the cumulative probabilities greater than zero if cdf
is set to TRUE
.
A correction factor is applied to improve accuracy of the the function Strlng2
in the computation of probabilities. Accuracy of the computations decreases with increasing value of m
.
prob |
a vector containing the cumulative probabilities corresponding to the values in |
value |
a vector containing the values of the test statistic. |
critical.value |
critical value of the test statistic corresponding to |
Haydar Demirhan
Maintainer: Haydar Demirhan <haydarde@hacettepe.edu.tr>
Alcover, P.M., Guillamon, A., Ruiz, M.C., A new randomness test for bit sequences. Informatica (2013), 24(3), 339–356.
# Critical values for the Topological Binary Test at 0.01 and 0.05 levels of significance. TBT.criticalValue(m=8, k=256, alpha=0.01, cdf=FALSE, exact=FALSE) TBT.criticalValue(m=8, k=256, alpha=0.05, cdf=FALSE, exact=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.