lexact
is DEPRECATED. Replaced by new version of
lfast
.
lexact
remains as a legacy for earlier package users.
It is now just a wrapper for lfast
Previously, lexact
used a Differential Evolution (DE) algorithm to
find an optimum solution with desired mean and standard deviation,
but we found that the updated lfast
function is much faster and just
as accurate.
Also the package is much less bulky.
Examples
x <- lexact(
n = 256,
mean = 4.0,
sd = 1.0,
lowerbound = 1,
upperbound = 7,
items = 6
)
#> lexact() function is deprecated.
#>
#> Using the more efficient lfast() function instead
#> best solution in 584 iterations
x <- lexact(256, 2, 1.8, 0, 10)
#> lexact() function is deprecated.
#>
#> Using the more efficient lfast() function instead
#> best solution in 159 iterations