powered by
Create initial sample using Latin Hypercube Sampling (LHS) method. The variables will be ranged between 0-1
InitializePopulationLHS( numberOfIndividuals, chromosomeLength, minVal = 0, maxVal = 1, samplingMethod = 0 )
The number of individual in the population (ncol). Integer > 0.
The number of variables per individual (nrow)
Minimum value of the resulting sample
Maximum value of the resulting sample
Not used
A matrix of size chromosomeLength x nIndividual.
# NOT RUN { nVar <- 14 nIndividual <- 100 InitializePopulationLHS(nIndividual,nVar,FALSE) # }
Run the code above in your browser using DataLab