use of gov.sandia.umf.platform.ensemble.params.specs.ListParameterSpecification in project n2a by frothga.
the class ParameterSpecGroupSet method consts.
private static void consts() {
ConstantParameterSpecGroup group = new ConstantParameterSpecGroup();
group.addConstParameter("A", 43.2);
group.addConstParameter("B", 32.4);
group.addConstParameter("C", 87.2);
group.addConstParameter("D", 111.2);
ParameterSpecGroup group2 = new ParameterSpecGroup(4);
group2.add("Z", new ListParameterSpecification(true, false, false, true));
ParameterSpecGroupSet groups = new ParameterSpecGroupSet();
groups.add(group);
groups.add(group2);
groups.printParameterSets();
}
use of gov.sandia.umf.platform.ensemble.params.specs.ListParameterSpecification in project n2a by frothga.
the class ParameterSpecGroupSet method multiple.
private static void multiple() {
RandomManager.setRandomSeed("Ensemble/UniformParameterSpecification", 123);
ParameterSpecGroup knGrp = new ParameterSpecGroup(3);
knGrp.put("Knowledge", new ListParameterSpecification(new Object[] { 0.2, 0.5, 0.8 }));
ParameterSpecGroup gravGrp = new ParameterSpecGroup(6);
gravGrp.put("Gravity", new EvenSpacingParameterSpecification(10, 20));
ParameterSpecGroup uniGrp = new ParameterSpecGroup(3);
uniGrp.put("UNIFORM", new UniformParameterSpecification(0, 10.0), true);
ParameterSpecGroupSet groups = new ParameterSpecGroupSet();
groups.add(knGrp);
groups.add(gravGrp);
groups.add(uniGrp);
// ConstantParameterSpecGroup cgroup = new ConstantParameterSpecGroup();
// cgroup.addConstParameter("Gravity", 2222);
// cgroup.addConstParameter("Gravityx", 2222);
// groups.setDefaultValueGroup(cgroup);
groups.setDefaultValueGroup(new ConstantParameterSpecGroup("Gravity", 22, "xyz", "what", "pisquared", 10.237, "asdf"));
// groups.printParameterSets(false);
groups.printParameterSets(true);
}
Aggregations