net.simplace.sim.control.generators.LHSSimGenerator

Generate simulations with parameters created using random Latin hypercube sampling

Example

Three dimensional hypercube with 1600 samples:

|  <generator id="LHSSG" class="net.simplace.sim.control.generators.LHSSimGenerator">
|    <cal id="par_a" datatype="DOUBLE" min="0.3" max="1" target="par_a"/>
|    <cal id="par_b" datatype="DOUBLE" min="0.012" max="0.024" target="par_b"/>
|    <cal id="par_c" datatype="DOUBLE" min="0.1" max="1" target="par_c"/>
|    <input id="samples" datatype="INT">1600</input>
|  </generator>

References

LHS and permutation functions by Le Minh Nghia, NTU-Singapore (Google code link)




public class LHSSimGenerator extends DefaultSimulationGenerator {
// Public Constructors
public LHSSimGenerator(Element aGeneratorElement, FWSimSession aSession,
HashMap aFieldMap, FWSimVariable.CONTENT_TYPE aContentType);


// Public Instance Methods
public void init(); // Overrides DefaultSimulationGenerator

public HashMap createVariables(); // Overrides DefaultSimulationGenerator

public int[][] getSimpleLH(int N, int dim);

Generate matrix (nSamples x nDim) so that each column is a permutation of 1->N
public void generate(FWSimulationControlCache aCache, ResultSet aResultSet);
// Overrides DefaultSimulationGenerator




}



Hierarchy: java.lang.Object - net.simplace.sim.control.FWSimulationControlContainer (net.simplace.sim.util.FWSimFieldContainer) - net.simplace.sim.control.FWSimulationGenerator - DefaultSimulationGenerator - LHSSimGenerator