/** * Initialise the components in the DFR model. For each component, if a package * is not specified, then a prefix will be applied. These are BASICMODEL_PREFIX, * AFTEREFFECT_PREFIX and NORMALISATION_PREFIX respectively. Note that NORMALISATION_PREFIX * includes a partial class name. * @param basicModelName The name of the applied basic model for randomness. This * component must be specified and can NOT be an empty string. * @param afterEffectName The name of the applied first normalisation by after * effect. An empty string to disable this component. * @param normalisationName The name of the applied frequency normalisation * component. An empty string to disable this component. * @param _parameter The applied parameter value of the frequency normalisation. */ protected void initialise(String basicModelName, String afterEffectName, String normalisationName, double _parameter){ this.initialise(basicModelName.trim(), afterEffectName.trim(), normalisationName.trim()); // set parameter this.setParameter(_parameter); }
/** * The default constructor. Takes an array of strings to define the * Basic Model, the After Effect component and the Normalisation component. * If the array is less than 3 items in length, then empty strings will be passed * instead of the After Effect and/or Normalisation components. * @param components Corresponds to the names of the 3 DFR weighting models component * names, as passed to initialise(). */ public DFRWeightingModel (String[] components) { this.initialise( components[0].trim(), components.length > 1 ? components[1].trim() : "", components.length > 2 ? components[2].trim() : ""); }
/** * The default constructor. Takes an array of strings to define the * Basic Model, the After Effect component and the Normalisation component. * If the array is less than 3 items in length, then empty strings will be passed * instead of the After Effect and/or Normalisation components. * @param components Corresponds to the names of the 3 DFR weighting models component * names, as passed to initialise(). */ public DFRWeightingModel (String[] components) { this.initialise( components[0].trim(), components.length > 1 ? components[1].trim() : "", components.length > 2 ? components[2].trim() : ""); }
/** * Initialise the components in the DFR model. For each component, if a package * is not specified, then a prefix will be applied. These are BASICMODEL_PREFIX, * AFTEREFFECT_PREFIX and NORMALISATION_PREFIX respectively. Note that NORMALISATION_PREFIX * includes a partial class name. * @param basicModelName The name of the applied basic model for randomness. This * component must be specified and can NOT be an empty string. * @param afterEffectName The name of the applied first normalisation by after * effect. An empty string to disable this component. * @param normalisationName The name of the applied frequency normalisation * component. An empty string to disable this component. * @param _parameter The applied parameter value of the frequency normalisation. */ protected void initialise(String basicModelName, String afterEffectName, String normalisationName, double _parameter){ this.initialise(basicModelName.trim(), afterEffectName.trim(), normalisationName.trim()); // set parameter this.setParameter(_parameter); }