kbphoton / beast-mcmc

Automatically exported from code.google.com/p/beast-mcmc
0 stars 0 forks source link

Generating very long default value and bound arrays for parameters #328

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When BEAUti generates a multidimensional parameter it provides an initial value 
for every dimension:

<parameter id="theParam" dimension="5" value="1.0 1.0 1.0 1.0 1.0"/>

This is unnecessary if all the values are the same (only need to give one 
value). This is important because with the Skyride, the dimensions can get very 
large.

Original issue reported on code.google.com by ramb...@gmail.com on 27 Jul 2010 at 11:53

GoogleCodeExporter commented 9 years ago
it seems solved somehow:

    private String multiDimensionValue(int dimension, double value) {
        String multi = "";

        multi += value + "";

        // AR: A multidimensional parameter only needs to give initial values for every dimension
        // if they are actually different. A single value will automatically be expanded to every
        // dimension and make for a cleaner looking XML (and more robust to changes in the number
        // of groups/taxa etc.

//        for (int i = 2; i <= dimension; i++)
//            multi += " " + value;

        return multi;
    } 

Original comment by dong.w.xie@gmail.com on 12 Aug 2010 at 4:14

GoogleCodeExporter commented 9 years ago

Original comment by dong.w.xie@gmail.com on 16 Aug 2010 at 10:35